From mark at markgroen.com Mon Aug 18 01:11:35 2003 From: mark at markgroen.com (Mark Groen) Date: Sun, 17 Aug 2003 23:11:35 -0700 Subject: [thelist] simple float in Moz/Netscape References: <4.2.0.58.20030818002240.02218878@mail.delime.com> Message-ID: <001c01c3654f$a4710d40$6401a8c0@vn.shawcable.net> Well, it is a simple float but you've got a case of divitis and classitis going on a little bit. Getting rid of a bit of redundant CSS, we end up with 3 declarations instead of 5: Then in your body you've got divs everywhere when exactly zero are needed, change to this, (it's not perfect, you may want to tweak a pixel here or there): DSCN0143.jpg HTH! Regards, Mark Groen MG Web Services Web Site Hosting and Development www.markgroen.com mark at markgroen.com 604-780-6917 Bowen Island, Canada ----- Original Message ----- From: "Marc Seyon" To: Sent: August 17, 2003 9:23 PM Subject: [thelist] simple float in Moz/Netscape > Listers, > > Could someone be so kind as to help me figure out what I've mucked up here. > http://milsweb.f2o.org/testing/float.html > > It looks as it should in IE/Opera browsers but Moz won't place the text box > to the right of the image. > > Thanks. > -marc > > -- > Carnival 2003 in all its photographic glory. Playyuhself.com > http://www.playyuhself.com/ > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! > From lists at frankmarion.com Mon Aug 18 02:38:01 2003 From: lists at frankmarion.com (Frank) Date: Mon, 18 Aug 2003 03:38:01 -0400 Subject: [thelist] Tip: Double aliasing tables in MySQL Message-ID: <5.2.1.1.0.20030818033744.00a90860@mail.frankmarion.com> Did you know that you can alias a table more than once in the same query?* I had to edit some of my first work, done years ago to handle changes to a database and I discovered that a table can be aliased more than once with apparently little or no penalty in speed or robustness. SELECT p.ProductID , p.ProductName , p.BrandID , p.CategoryID , b.cat_id AS BrandID , b.cat_name AS BrandName , c.cat_id , c.cat_name FROM Products p LEFT JOIN categories b ON p.BrandID = b.cat_id LEFT JOIN categories c ON p.CategoryID = c.cat_id WHERE [... and so on and so forth ...] This was a quick and easy fix to my problem, saving me a couple of hours of tedious search and replace. *I can only attest that this works in MySQL 4.x * And I get the feeling that Rudy is going to jump all over my butt over this. -- Frank Marion lists at frankmarion.com Keep the signal high. From rudy937 at rogers.com Mon Aug 18 05:34:08 2003 From: rudy937 at rogers.com (rudy) Date: Mon, 18 Aug 2003 06:34:08 -0400 Subject: [thelist] Tip: Double aliasing tables in MySQL References: <5.2.1.1.0.20030818033744.00a90860@mail.frankmarion.com> Message-ID: <004001c36574$93410730$52639c18@r9373j4yqbe8dy> > *I can only attest that this works in MySQL 4.x > > * And I get the feeling that Rudy is going to jump all over my butt over this. ouch, is that my reputation? that i jump all over people's butts? how can i respond to this without adding to that perception? the double aliasing you speak of is standard and i'm not aware of any database where it doesn't work bruce clay has updated his search engine relationship chart http://www.bruceclay.com/searchenginechart.pdf showing the flow of primary, secondary, directory, and paid listing results rudy From lists at frankmarion.com Mon Aug 18 06:28:44 2003 From: lists at frankmarion.com (Frank) Date: Mon, 18 Aug 2003 07:28:44 -0400 Subject: [thelist] Tip: Double aliasing tables in MySQL In-Reply-To: <004001c36574$93410730$52639c18@r9373j4yqbe8dy> References: <5.2.1.1.0.20030818033744.00a90860@mail.frankmarion.com> Message-ID: <5.2.1.1.0.20030818071910.03780790@127.0.0.1> At 06:34 AM 2003-08-18 -0400, you wrote: >ouch, is that my reputation? that i jump all over people's butts? No. It may have been an overly-familiar statement (What is the emoticon for : See Frank good-naturedly nudge Rudy in the ribs?). Your reputation is more that of someone who tends to follow up with quality,and sometimes in-depth information especially to database related issues. You are also known (appreciatively) as someone who often knows a better way, and will stand up for it. >the double aliasing you speak of is standard and i'm not aware of any >database where it doesn't work Yay! It's nice to know that I can actually figger out stuff on my own lonesome sometimes. I'm so proud. (Don't take much, does it?) -- Frank Marion lists at frankmarion.com Keep the signal high. From roblgs at cscoms.com Mon Aug 18 07:12:25 2003 From: roblgs at cscoms.com (Rob Schumann) Date: Mon, 18 Aug 2003 19:12:25 +0700 Subject: [thelist] OT? So, Dogpile goes into reverse Message-ID: Hi, Anyone know what's up with Dogpile... just tried accessing it from Moz 1.5a MacOSX and got the following: > WARNING! Non-Compatible System > The Dogpile Toolbar is only compatible with the Microsoft > Windows OS and Internet Explorer 5.01 or higher. > > To download the latest version of Internet Explorer, click > here. Talk about a step backwards, and no apparent alternative for those of us who don't conform!. I find it rather sad that any site should choose to take this stance in 2003, but when search engines take this route it becomes considerably more worrying. Any idea when it happened. Regards Rob From manuel at simplelogica.net Mon Aug 18 07:47:24 2003 From: manuel at simplelogica.net (M.G. Noriega) Date: 18 Aug 2003 14:47:24 +0200 Subject: [thelist] OT? So, Dogpile goes into reverse In-Reply-To: References: Message-ID: <1061210847.2859.7.camel@nofx> El lun, 18-08-2003 a las 14:12, Rob Schumann escribi?: > Hi, > > Anyone know what's up with Dogpile... just tried accessing it from Moz 1.5a MacOSX and got the following: > > > WARNING! Non-Compatible System > > The Dogpile Toolbar is only compatible with the Microsoft > > Windows OS and Internet Explorer 5.01 or higher. > > > > To download the latest version of Internet Explorer, click > > here. > > Talk about a step backwards, and no apparent alternative for those of us who don't conform!. > > I find it rather sad that any site should choose to take this stance in 2003, but when search engines take this route it becomes considerably more worrying. Any idea when it happened. > > Works fine with my Mandrake 9.0 + Firebird 0.6.1 setup :? -- Manuel Gonz?lez Noriega Simplel?gica, construcci?n web @ http://simplelogica.net Logicola es el weblog de Simplel?gica http://simplelogica.net/logicola/ From Kath at cyber-kat.com Mon Aug 18 06:34:18 2003 From: Kath at cyber-kat.com (Kath) Date: Mon, 18 Aug 2003 07:34:18 -0400 Subject: [thelist] PHP - While Loop - Success! Message-ID: <3.0.32.20030818073415.0108c3d0@optonline.net> I finally got brave enough to tinker around with some of the suggestions Ryan and Fstorr made. I'm not exactly sure which line actually did the trick, but I'm not about to mess with success. Thank you all very much for lending a hand to this PHP newbie. I'll get there yet! In the meantime - my While loops are looping away. Onward and upward until the next roadblock! Kath ... "A patriot must always be ready to defend his country against its government." -Edward Abbey, naturalist and author (1927-1989) Established 1995 --> www.cyber-kat.com From keith.underdown at qconsultancy.co.uk Mon Aug 18 04:09:56 2003 From: keith.underdown at qconsultancy.co.uk (Keith Underdown) Date: Mon, 18 Aug 2003 10:09:56 +0100 Subject: [thelist] Problems with Advanced Guestbook and MySQL users and connectivity Message-ID: Hi there I hope that some of you are out there having had a good holiday and ready with your usual acumen to help me sort a problem. My isp decided for good reasons to move one of my client sites to a new server and since then I have had no success in getting the guest book to work. I'm using Advanced Guest book and seem to have messed up the user entries in the database. Please have a look at www.cofe-st-thomas-dudley.org.uk/guestbook/ and see if you can tell me what is going on. I've tried re-running install.php but that fails to connect to the database. I have the data from the old site as CSV files so scrapping the present installation and starting again is a possibility. Thanks Keith (KUQ) -- Keith Underdown (Managing Director) The Q Consultancy Ltd KALIDO Information Archtectures Specialists +44 7798 934782 www.qconsultancy.co.uk From kilimajer at webglobe.sk Mon Aug 18 08:42:16 2003 From: kilimajer at webglobe.sk (Marek Kilimajer) Date: Mon, 18 Aug 2003 15:42:16 +0200 Subject: [thelist] Problems with Advanced Guestbook and MySQL users and connectivity In-Reply-To: References: Message-ID: <3F40D7B8.9020500@webglobe.sk> For me it seem you need to edit configuration.php or similarly named file and change the database settings (username, password, maybe database name). root without a password is looks more like a development machine, which your ISP is not ;) Keith Underdown wrote: > Hi there > > I hope that some of you are out there having had a good holiday and > ready with your usual acumen to help me sort a problem. > > My isp decided for good reasons to move one of my client sites to a new > server and since then I have had no success in getting the guest book to > work. I'm using Advanced Guest book and seem to have messed up the user > entries in the database. > > Please have a look at www.cofe-st-thomas-dudley.org.uk/guestbook/ and > see if you can tell me what is going on. I've tried re-running > install.php but that fails to connect to the database. I have the data > from the old site as CSV files so scrapping the present installation and > starting again is a possibility. > > Thanks > > Keith (KUQ) > From harvester at lists.evolt.org Mon Aug 18 09:24:09 2003 From: harvester at lists.evolt.org (harvester at lists.evolt.org) Date: 18 Aug 2003 14:24:09 -0000 Subject: [thelist] Tip Harvest for the Week of Monday Aug 11, 2003 Message-ID: <20030818142409.28418.qmail@acornparenting.org> The tip harvest for the Week of Monday Aug 11, 2003 has been added to the lists.evolt.org site. Get it at: http://lists.evolt.org/harvest/show.cgi?w=20030811 Week at a glance listing at: http://lists.evolt.org/harvest/week.cgi?w=20030811 Harvest Summary --------------- Number of messages: 383 Number of tips : 16 Tip Authors ----------- Frank Marion (4) Joshua Olson (1) Kevin Martin (2) Liam Delahunty (2) Paul Bennett (1) Paul Cowan (1) pixelmech (1) rudy (2) Ryan Tames (1) Simon Willison (1) Tip Types --------- Backups (1) Cleaning CDs (1) ColdFusion (1) community (1) Eudora Mail Agent (3) javascript (1) Leave evolt out of it (1) PHP (1) Security (1) spam haters (1) sql (1) SQL (1) SQL joins (1) Windows Tasks (1) From ngilas2003 at yahoo.com Mon Aug 18 09:34:23 2003 From: ngilas2003 at yahoo.com (Stevenson N) Date: Mon, 18 Aug 2003 07:34:23 -0700 (PDT) Subject: [thelist] SQL Query Message-ID: <20030818143423.61348.qmail@web80606.mail.yahoo.com> Hi all, If i have values 2.12.12 and 2.13.13.3 How can i differentiate in SQL the value that has two dots i.e 2.12.12 from the value that has three dot i.e 2.13.13.3 Please assist --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! From Tab.Alleman at MetroGuide.com Mon Aug 18 12:31:08 2003 From: Tab.Alleman at MetroGuide.com (Tab Alleman) Date: Mon, 18 Aug 2003 13:31:08 -0400 Subject: [thelist] SQL Query Message-ID: Stevenson N wrote: > If i have values 2.12.12 and 2.13.13.3 > > How can i differentiate in SQL the value that has two dots i.e > 2.12.12 from the value that has three dot i.e 2.13.13.3 Ooh ooh, I know a nifty trick: L1 = Len(TestDataStr) L2 = Len(Replace(TestDataStr, '.', '') NumberOfDots = L1 - L2 HTH, Tab From dougal at gunters.org Mon Aug 18 12:37:25 2003 From: dougal at gunters.org (Dougal Campbell) Date: Mon, 18 Aug 2003 12:37:25 -0500 (CDT) Subject: [thelist] SQL Query In-Reply-To: <20030818143423.61348.qmail@web80606.mail.yahoo.com> References: <20030818143423.61348.qmail@web80606.mail.yahoo.com> Message-ID: <20030818123344.B73247@ns2.iguanasoft.com> On Mon, 18 Aug 2003, Stevenson N wrote: > Hi all, > > If i have values 2.12.12 and 2.13.13.3 > How can i differentiate in SQL the value that has two dots i.e > 2.12.12 from the value that has three dot i.e 2.13.13.3 Select just the three-dot values: SELECT * from mytable WHERE myfield LIKE "%.%.%.%" Select just the two-dot values: SELECT * from mytable WHERE myfield LIKE "%.%.%" AND NOT myfield LIKE "%.%.%.%" -- Ernest MacDougal Campbell III, MCP+I, MCSE http://dougal.gunters.org/ http://spam.gunters.org/ Web Design & Development: http://www.mentalcollective.com/ This message is guaranteed to be 100% eror frea! From pkaulbak at idirect.ca Mon Aug 18 12:33:35 2003 From: pkaulbak at idirect.ca (Peter Kaulback) Date: Mon, 18 Aug 2003 13:33:35 -0400 Subject: [thelist] What is wrong with this site? Message-ID: <5.2.0.9.0.20030818133316.03af2260@mail.idirect.ca> An associate sent me this site url http://www.niagarapeninsula.com/index2.shtml as an example site yet it does not work in Netscape or Mozilla. What is wrong with the code? Peter Kaulback -- I haven't failed, I've found 10,000 ways that don't work. Thomas Edison (1847-1931) From cs1spw at bath.ac.uk Mon Aug 18 12:54:34 2003 From: cs1spw at bath.ac.uk (Simon Willison) Date: Mon, 18 Aug 2003 18:54:34 +0100 Subject: [thelist] What is wrong with this site? In-Reply-To: <5.2.0.9.0.20030818133316.03af2260@mail.idirect.ca> References: <5.2.0.9.0.20030818133316.03af2260@mail.idirect.ca> Message-ID: <3F4112DA.3060208@bath.ac.uk> Peter Kaulback wrote: > An associate sent me this site url > http://www.niagarapeninsula.com/index2.shtml as an example site yet it > does not work in Netscape or Mozilla. What is wrong with the code? The web server it is running on is configured incorrectly; the document is being served up with a Content-Type header of text/plain, when the Content-Type should be text/html. This is probably because the .shtml file extension is not mapped to the right Content-Type - I'm willing to bet that if the file were renamed to index2.html the server would start serving it up correctly and it would work in Mozilla. This is a classic example of IE being horribly, horribly broken. Instead of serving the document up as plain text (as the Content-Type tells it to) IE "guesses" that it's really HTML based on analysis of the document. It shouldn't be doing this, and the fact that it does means pages are harder to debug (and in many cases aren't debugged at all as the page author only tests them in IE). Cheers, Simon Willison From rudy937 at rogers.com Mon Aug 18 12:58:55 2003 From: rudy937 at rogers.com (rudy) Date: Mon, 18 Aug 2003 13:58:55 -0400 Subject: [thelist] SQL Query References: <20030818143423.61348.qmail@web80606.mail.yahoo.com> <20030818123344.B73247@ns2.iguanasoft.com> Message-ID: <006701c365b2$ef3926b0$52639c18@r9373j4yqbe8dy> > Select just the two-dot values: > > SELECT * from mytable WHERE myfield LIKE "%.%.%" > AND NOT myfield LIKE "%.%.%.%" good thinking, dougal, but try your query on some test data like this -- 1.onedot 2.two.dots 3...threedotsinarow 4.four.dots.oops.i.lied.theres.more 2.22.222.a.lot.of.dots.in.this.one.too i like tab's solution -- very elegant -- although it does depend on a REPLACE function which maybe not every database has i'm sure there's a regex solution to the original problem but few databases support regular expressions in sql mysql being one that does ;o) rudy From mail at webmarketingworx.com Mon Aug 18 13:21:16 2003 From: mail at webmarketingworx.com (Bill Haenel) Date: Mon, 18 Aug 2003 14:21:16 -0400 Subject: [thelist] What is wrong with this site? In-Reply-To: <5.2.0.9.0.20030818133316.03af2260@mail.idirect.ca> Message-ID: <000101c365b5$844312a0$1f26600a@biggiefries> Checking with Opera was fine...until I changed Opera's File Types preferences from "Determine action by file extension if MIME type is unreliable" to "Determine action by MIME type". Then I got source, just like in Moz and NN. Must be the MIME type isn't set. BH From fffrancis at fstorr.demon.co.uk Mon Aug 18 13:30:32 2003 From: fffrancis at fstorr.demon.co.uk (fstorr) Date: Mon, 18 Aug 2003 19:30:32 +0100 Subject: [thelist] PHP self referring page probs In-Reply-To: <000901c36513$552f40d0$6501a8c0@neonreactor> References: <000901c36513$552f40d0$6501a8c0@neonreactor> Message-ID: <3F411B48.7050901@fstorr.demon.co.uk> > You should check the number of results returned from the query to make > this decision: +++++ Cheers John I'd got that far, but this is what I'm stuck on (the link to the code is gone, as I've done some work on it during the day... and then left it at work). Here's pseudo code: Query MySQL Get rows back and loop through them to check if there are any repeated terms (eg two W3Cs). If there are, decrease the value of a count variable by 1. After this loop has finished, if the value of the count varaible is > than 1 spit out a list of terms. If it is 1, just present the results. The trouble is that I've just moved through the entire results set, so when I get to the second set code, it returns nothing. This is what I can't work out how to do. Regards F From lombar at yahoo.com Mon Aug 18 13:39:41 2003 From: lombar at yahoo.com (Eric Schwake) Date: Mon, 18 Aug 2003 11:39:41 -0700 (PDT) Subject: [thelist] Simple Intranet Setup Question Message-ID: <20030818183941.65359.qmail@web13115.mail.yahoo.com> Hello all, I'm trying to setup a small intranet for our office. We only have 5 employees that will be trying to access it. I have IIS installed on my computer and am able to test all my pages using it and dreamweaver. Is it possible to host the intranet site from my computer and if so how would I do that. If it's to complex to dicusss here are there any tutorials on the web I could find? Thanks for all the help. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From cparker at swatgear.com Mon Aug 18 13:50:22 2003 From: cparker at swatgear.com (Chris W. Parker) Date: Mon, 18 Aug 2003 11:50:22 -0700 Subject: [thelist] Simple Intranet Setup Question Message-ID: <001BD19C96E6E64E8750D72C2EA0ECEE2B7F09@ati-ex-01.ati.local> Eric Schwake on Monday, August 18, 2003 11:40 AM said: > Is it possible to host the intranet site from my > computer and if so how would I do that. Yes. If you're computer has it turned on and you can see your own asp pages anyone should be able to connect to your ip address (or computer name) and see your pages. http://ipnumber/ or http://computername/ should work. > If it's > to complex to dicusss here are there any > tutorials on the web I could find? Tutorials? Don't know. But you can email me directly if you have more questions. > Thanks for all the help. No problem! Chris. From jeff at jeffhowden.com Mon Aug 18 13:51:26 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Mon, 18 Aug 2003 11:51:26 -0700 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061229096.31740@LISTSERV.alphashop.com> Message-ID: <1061232431.9200@LISTSERV.alphashop.com> simon, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Simon Willison > > This is a classic example of IE being horribly, horribly > broken. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< that's your opinion as a developer. however, from a non-technical user's perspective, this is the sort of thing a browser should do automatically. so, even as a developer, i see it as a good thing. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From dmitchell at oproma.com Mon Aug 18 13:57:26 2003 From: dmitchell at oproma.com (David Mitchell) Date: Mon, 18 Aug 2003 14:57:26 -0400 Subject: [thelist] Simple Intranet Setup Question In-Reply-To: <001BD19C96E6E64E8750D72C2EA0ECEE2B7F09@ati-ex-01.ati.local> Message-ID: <000001c365ba$9111c850$6501a8c0@opr> If your machine is accesible to the outside world (not behind a firewall) make sure that you restrict access to it, so you're not sharing your private company info with everyone. Some good, free software firewall solutions are Sygate Personal Firewall, Black Ice Defender, Zone Alarm. Sygate is the best one I've used. -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Chris W. Parker Sent: Monday, August 18, 2003 2:50 PM To: thelist at lists.evolt.org; lombar at yahoo.com Subject: RE: [thelist] Simple Intranet Setup Question Eric Schwake on Monday, August 18, 2003 11:40 AM said: > Is it possible to host the intranet site from my > computer and if so how would I do that. Yes. If you're computer has it turned on and you can see your own asp pages anyone should be able to connect to your ip address (or computer name) and see your pages. http://ipnumber/ or http://computername/ should work. > If it's > to complex to dicusss here are there any > tutorials on the web I could find? Tutorials? Don't know. But you can email me directly if you have more questions. > Thanks for all the help. No problem! Chris. -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From k.neirynck at belgacom.net Mon Aug 18 14:07:09 2003 From: k.neirynck at belgacom.net (Kristof Neirynck) Date: Mon, 18 Aug 2003 21:07:09 +0200 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061232431.9200@LISTSERV.alphashop.com> References: <1061232431.9200@LISTSERV.alphashop.com> Message-ID: <3F4123DD.6060105@belgacom.net> > that's your opinion as a developer. > > however, from a non-technical user's perspective, this is the sort of thing > a browser should do automatically. > > so, even as a developer, i see it as a good thing. This does leave out the easy way of showing sourcecode by just changing the content-type header. When I, as a developer say my file is text/plain, it IS text/plain and not whatever msie thinks it is. Kristof From lacjoe at wsinc.com Mon Aug 18 14:17:38 2003 From: lacjoe at wsinc.com (Joe LaChapell) Date: Mon, 18 Aug 2003 14:17:38 -0500 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061232431.9200@LISTSERV.alphashop.com> References: <1061232431.9200@LISTSERV.alphashop.com> Message-ID: <3F412652.5030709@wsinc.com> Jeff, The content type is text/plain ... therefore somebody wants the output to be text/plain. IE is changing this to display as text/html, which may not be the intended output, but IE says that it "should" be. End users and developers alike should think this is horribly wrong. IE is overriding the developers intended output. You don't see this as a problem? What other assumptions can be made that are "good" for the end user? (no offense intended, just bringing up a discussion point). :) -joe Jeff Howden wrote: > simon, > > >><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< >>From: Simon Willison >> >>This is a classic example of IE being horribly, horribly >>broken. >><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > > that's your opinion as a developer. > > however, from a non-technical user's perspective, this is the sort of thing > a browser should do automatically. > > so, even as a developer, i see it as a good thing. > > .jeff > > ------------------------------------------------------ > Jeff Howden - Web Application Specialist > Resume - http://jeffhowden.com/about/resume/ > Code Library - http://evolt.jeffhowden.com/jeff/code/ > > From jeff at jeffhowden.com Mon Aug 18 14:17:24 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Mon, 18 Aug 2003 12:17:24 -0700 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061233488.29798@LISTSERV.alphashop.com> Message-ID: <1061233989.19477@LISTSERV.alphashop.com> kristof, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Kristof Neirynck > > > so, even as a developer, i see it as a good thing. > > This does leave out the easy way of showing sourcecode > by just changing the content-type header. > > When I, as a developer say my file is text/plain, it IS > text/plain and not whatever msie thinks it is. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< sure, but if you also change the file extension (if there is one) to txt, then ie will know you *meant* text/plain and abide by that. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From joel at spinhead.com Mon Aug 18 14:26:25 2003 From: joel at spinhead.com (Joel D Canfield) Date: Mon, 18 Aug 2003 12:26:25 -0700 Subject: [thelist] forcing height - is a spacer.gif the only way? Message-ID: <72E9FAA171D63B48AAC707C72900E6B47406@ireland.spinhead.com> http://spinhead.com/clients/scottys/contact.asp (note the lower left corner) Yes, I know; it's been discussed to death; thing is, I can't find the answer. I've tried setting the and the height to 100% (yes, I know there's really no 'height' attribute), tried it in my CSS; tried burning a cat's liver by the dark of the moon. Naught helps. What *didn't* I try? Thanks ever so much spinhead From jeff at jeffhowden.com Mon Aug 18 14:20:50 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Mon, 18 Aug 2003 12:20:50 -0700 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061233716.18175@LISTSERV.alphashop.com> Message-ID: <1061234195.5777@LISTSERV.alphashop.com> joe, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Joe LaChapell > > The content type is text/plain ... therefore somebody > wants the output to be text/plain. IE is changing this > to display as text/html, which may not be the intended > output, but IE says that it "should" be. End users and > developers alike should think this is horribly wrong. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< again, as evidenced by the original request, the developer doesn't always intend for their work to be sent as text/plain. ie is doing its best to protect the user from this mistake. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > IE is overriding the developers intended output. You > don't see this as a problem? What other assumptions can > be made that are "good" for the end user? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< closing tables with missing tags. closing fieldsets with missing tags. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From ron.luther at hp.com Mon Aug 18 14:34:40 2003 From: ron.luther at hp.com (Luther, Ron) Date: Mon, 18 Aug 2003 14:34:40 -0500 Subject: [thelist] forcing height - is a spacer.gif the only way? Message-ID: <8958135993102D479F1CA2351F370A0602F4BF76@cceexc17.americas.cpqcorp.net> Joel D Canfield asked: >>http://spinhead.com/clients/scottys/contact.asp (note the lower left corner) >>What *didn't* I try? Hi Joel, Just a quick note ... (and I may be coming into the movie late) the 'other' pages ... "Teacher", "Gear", "Home", etc. ... seem to work fine for me in IE5.5 on Win2k. Either those other pages still have a problem I'm still sleeping through, or you could just copy one of those. HTH, RonL. From cparker at swatgear.com Mon Aug 18 14:44:31 2003 From: cparker at swatgear.com (Chris W. Parker) Date: Mon, 18 Aug 2003 12:44:31 -0700 Subject: [thelist] forcing height - is a spacer.gif the only way? Message-ID: <001BD19C96E6E64E8750D72C2EA0ECEE2B7F0A@ati-ex-01.ati.local> Joel D Canfield on Monday, August 18, 2003 12:26 PM said: > What *didn't* I try? Did you try nesting another table? If you nest another table for the sole purpose of displaying the navigation your problem should be solved. (Should look like this.) +-X-----------------------------+ | | | | | | +------+------------------------+ |+-Y--+| | || || | ++----++ | || || | ++----++ | || || | ++----++ | || || | ++----++ | || || | ++----++ | | | | | | | | | | +------+------------------------+ HTH, Chris. From joel at spinhead.com Mon Aug 18 14:56:06 2003 From: joel at spinhead.com (Joel D Canfield) Date: Mon, 18 Aug 2003 12:56:06 -0700 Subject: [thelist] forcing height - is a spacer.gif the only way? Message-ID: <72E9FAA171D63B48AAC707C72900E6B47407@ireland.spinhead.com> Sorry to disturb your nap, Ron ;) Yeah, I'm using a great honkin' spacer gif for those pages; just looking for a more fluid method. joel -----Original Message----- From: Luther, Ron Sent: Mon 8/18/2003 12:34 PM To: thelist at lists.evolt.org Cc: Subject: RE: [thelist] forcing height - is a spacer.gif the only way? Joel D Canfield asked: >> http://spinhead.com/clients/scottys/contact.asp (note the lower left corner) >>What *didn't* I try? Hi Joel, Just a quick note ... (and I may be coming into the movie late) the 'other' pages ... "Teacher", "Gear", "Home", etc. ... seem to work fine for me in IE5.5 on Win2k. Either those other pages still have a problem I'm still sleeping through, or you could just copy one of those. HTH, RonL. -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From lacjoe at wsinc.com Mon Aug 18 14:59:03 2003 From: lacjoe at wsinc.com (Joe LaChapell) Date: Mon, 18 Aug 2003 14:59:03 -0500 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061234195.5777@LISTSERV.alphashop.com> References: <1061234195.5777@LISTSERV.alphashop.com> Message-ID: <3F413007.8070502@wsinc.com> I think we have basic philosophical differences. You see a browser "protecting" the user by assuming a closing table tag (for example), I see bloated browsers to support a developer who doesn't know how to markup correctly, which in the end harms end users. I guess I put more onus on the developer. For example, I don't think that support for a missing semicolon should be added to Java compilers. XML parsers are another example. Anyway, cheers! -joe Jeff Howden wrote: > joe, > > >><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< >>From: Joe LaChapell >> >>The content type is text/plain ... therefore somebody >>wants the output to be text/plain. IE is changing this >>to display as text/html, which may not be the intended >>output, but IE says that it "should" be. End users and >>developers alike should think this is horribly wrong. >><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > > again, as evidenced by the original request, the developer doesn't always > intend for their work to be sent as text/plain. ie is doing its best to > protect the user from this mistake. > > >><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< >>IE is overriding the developers intended output. You >>don't see this as a problem? What other assumptions can >>be made that are "good" for the end user? >><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > > closing tables with missing tags. > > closing fieldsets with missing tags. > > .jeff > > ------------------------------------------------------ > Jeff Howden - Web Application Specialist > Resume - http://jeffhowden.com/about/resume/ > Code Library - http://evolt.jeffhowden.com/jeff/code/ > > From joel at spinhead.com Mon Aug 18 15:04:47 2003 From: joel at spinhead.com (Joel D Canfield) Date: Mon, 18 Aug 2003 13:04:47 -0700 Subject: [thelist] forcing height - is a spacer.gif the only way? Message-ID: <72E9FAA171D63B48AAC707C72900E6B47408@ireland.spinhead.com> Yep; that's one thing I didn't try. Feeling sluggish today, I guess ;) -----Original Message----- From: Chris W. Parker Sent: Mon 8/18/2003 12:44 PM To: thelist at lists.evolt.org Cc: Subject: RE: [thelist] forcing height - is a spacer.gif the only way? Joel D Canfield < mailto:joel at spinhead.com> on Monday, August 18, 2003 12:26 PM said: > What *didn't* I try? Did you try nesting another table? If you nest another table for the sole purpose of displaying the navigation your problem should be solved. (Should look like this.) +-X-----------------------------+ | | | | | | +------+------------------------+ |+-Y--+| | || || | ++----++ | || || | ++----++ | || || | ++----++ | || || | ++----++ | || || | ++----++ | | | | | | | | | | +------+------------------------+ HTH, Chris. -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From rudy937 at rogers.com Mon Aug 18 14:59:38 2003 From: rudy937 at rogers.com (rudy) Date: Mon, 18 Aug 2003 15:59:38 -0400 Subject: [thelist] forcing height - is a spacer.gif the only way? References: <72E9FAA171D63B48AAC707C72900E6B47406@ireland.spinhead.com> Message-ID: <007801c365c3$552d3500$52639c18@r9373j4yqbe8dy> > What *didn't* I try? you are over-thinking the problem two nested tables solves both the nav bar problem on the left, and the padding of the main copy on the right http://r937.com/scottys.html p.s. i would change the blue on red -- ye gods, my eyes are bleeding!!! rudy From camato1 at gl.umbc.edu Mon Aug 18 15:54:05 2003 From: camato1 at gl.umbc.edu (Cheryl Amato) Date: Mon, 18 Aug 2003 16:54:05 -0400 (EDT) Subject: [thelist] OT? So, Dogpile goes into reverse Message-ID: FWIW I just successfully accessed Dogpile from both Safari & Mozilla on OSX - was even able to open & use the new beta version cheryl From lists at frankmarion.com Mon Aug 18 15:54:34 2003 From: lists at frankmarion.com (Frank) Date: Mon, 18 Aug 2003 16:54:34 -0400 Subject: [thelist] JS: Snippet to grab GET/POST value? Message-ID: <5.2.1.1.0.20030818165427.03782148@mail.frankmarion.com> Can someone recommend the simplest way to retrieve a get/post value using javascript? I want it so that I can do something of this nature: function isThisReloaded() { var url_value = ''; if (my_url_value == 1) { doThisFunkyThing(); } else { doNada(); } } onload = isThisReloaded; if the value my_url_value is found in the get or post values another function gets triggered, otherwise, it just ignores it. Thanks -- Frank Marion lists at frankmarion.com Keep the signal high. From jeff at jeffhowden.com Mon Aug 18 16:05:23 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Mon, 18 Aug 2003 14:05:23 -0700 Subject: [thelist] JS: Snippet to grab GET/POST value? In-Reply-To: <1061240011.24956@LISTSERV.alphashop.com> Message-ID: <1061240467.31788@LISTSERV.alphashop.com> frank, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Frank > > Can someone recommend the simplest way to retrieve a > get/post value using javascript? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< get values are in the url and therefore accessible to javascript. try this on for size: http://evolt.jeffhowden.com/jeff/code/js_url_variables/index.cfm post values are in the http headers making them inaccessible to javascript. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > I want it so that I can do something of this nature: > > function isThisReloaded() { > var url_value = ''; > if (my_url_value == 1) { > doThisFunkyThing(); > } else { > doNada(); > } > } > onload = isThisReloaded; > > if the value my_url_value is found in the get or > post values another function gets triggered, > otherwise, it just ignores it. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< are you trying to keep users from reloading a page that results in a form post? i personally don't think there's any way to reliably detect whether a page has been reloaded or not. perhaps if you explain what you're actually trying to accomplish you'll get a more helpful answer. thanks, .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From dougal at gunters.org Mon Aug 18 16:18:10 2003 From: dougal at gunters.org (Dougal Campbell) Date: Mon, 18 Aug 2003 16:18:10 -0500 (CDT) Subject: [thelist] SQL Query In-Reply-To: <006701c365b2$ef3926b0$52639c18@r9373j4yqbe8dy> References: <20030818143423.61348.qmail@web80606.mail.yahoo.com> <006701c365b2$ef3926b0$52639c18@r9373j4yqbe8dy> Message-ID: <20030818161503.F73247@ns2.iguanasoft.com> On Mon, 18 Aug 2003, rudy wrote: > > Select just the two-dot values: > > > > SELECT * from mytable WHERE myfield LIKE "%.%.%" > > AND NOT myfield LIKE "%.%.%.%" > > good thinking, dougal, but try your query on some test data like this -- > > 1.onedot > 2.two.dots > 3...threedotsinarow > 4.four.dots.oops.i.lied.theres.more > 2.22.222.a.lot.of.dots.in.this.one.too > > i like tab's solution -- very elegant -- although it does depend on a > REPLACE function which maybe not every database has > > i'm sure there's a regex solution to the original problem but few databases > support regular expressions in sql > > mysql being one that does ;o) Right, I realize that if there are other patterns besides the two mentioned that it would complicate things. But if those two patterns are the only two to be concerned with, using the LIKE clauses will be the most platform-independent method. As you say, certain db platforms may have non-standard functions to make the matching easier and more-specific. But since the original poster didn't mention a platform, I just gave a solution that would work with the information we *did* have. :) -- Ernest MacDougal Campbell III, MCP+I, MCSE http://dougal.gunters.org/ http://spam.gunters.org/ Web Design & Development: http://www.mentalcollective.com/ This message is guaranteed to be 100% eror frea! From cs1spw at bath.ac.uk Mon Aug 18 16:45:38 2003 From: cs1spw at bath.ac.uk (Simon Willison) Date: Mon, 18 Aug 2003 22:45:38 +0100 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061234195.5777@LISTSERV.alphashop.com> References: <1061234195.5777@LISTSERV.alphashop.com> Message-ID: <3F414902.1070302@bath.ac.uk> Jeff Howden wrote: > again, as evidenced by the original request, the developer doesn't always > intend for their work to be sent as text/plain. ie is doing its best to > protect the user from this mistake. "Be liberal in what you accept and conservative in what you produce" is fine for some purposes, but in web browsers it is a down right liability. The reason, as I touched on before, is simple: a web browser is a development tool. Most people adding content to the web are only testing it in a single browser - if that browser is silently fixing their mistakes for them, they'll think that their page is correct and will consider it a job well done. When a browser comes along that doesn't fix that particular mistake the site will be broken, but the original author will have no idea that there's a problem. This in turn leads to a downwards spiral. These days, if you want to write a new web browser you have to not only implement a number of large W3C specifications, but you also have to reverse-engineer Internet Explorer's thousands of undocumented "fixes" or your browser will be unable to render the vast majority of the web, and no one will use it. It's not just bad practise, it's down right anti-competitive, and unfortunately the market has got to a point now where the situation is irreversible (browsers can't get sticter because old pages will break). XHTML was meant to save us from this by starting anew with strict rules and the all important requirement that invalid pages should refuse to render, but unless the next version of IE (ha! there's a joke) does proper XML parsing on pages served with an XML doctype (as Mozilla does at the moment) even that will be lost. Silently fixing mistakes is NOT an aid to developers. If you've left out a closing table tag and the page fails to render (or even better fails with a warning message telling you you forgot to close the tag) you fix it, save and reload. If the browser silently fixes it for you you never even realise there's a problem. Can you imagine the state the world's software would be in if some C compilers "guessed" what you meant and re-added missing braces and semi-colons for you? Sure, they'd work - but no one who looked at the source code would know why! HTML should have been the same, but smart thinking by browser vendors doomed us to an endless cycle of undocumented "enhancements" and badly formed web pages. Got a weblog? Got a blogroll? Want it to show when the blogs on it were last updated? Look no further than http://blo.gs/ - a site that lets you quickly put together your own list of favourite blogs, watches when they update and makes available an XML file which you can download to your own site once an hour and use to generate a dynamic blogroll showing your favourite blogs in the order they last updated. From lists at frankmarion.com Mon Aug 18 16:54:13 2003 From: lists at frankmarion.com (Frank) Date: Mon, 18 Aug 2003 17:54:13 -0400 Subject: [thelist] JS: Snippet to grab GET/POST value? In-Reply-To: <1061240467.31788@LISTSERV.alphashop.com> References: <1061240011.24956@LISTSERV.alphashop.com> Message-ID: <5.2.1.1.0.20030818173152.00abd238@127.0.0.1> At 02:05 PM 2003-08-18 -0700, you wrote: >are you trying to keep users from reloading a page that results in a form >post? >perhaps if you explain what you're actually trying to accomplish you'll get >a more helpful answer. The answer was a pretty helpful answer. Thank you. I'll fly this past you just to get your ideas though. I have an administrative page with lots of form information broken up into logical divs (clients info, address, contact information, pop information and so forth). [Visual description best seen in mono-spaced font.] At the top of the page I have a "function bar" where clicking on a name (ie: Notes) changes the class of a div from hidden to visible. All divs are "hidden" by default, and display only when it's name on a "function bar" is clicked. "Function bar" | Client Info | CONTACT | Notes | Account Details | |-------------------------------------------------| |-------------------------------------------------| | Client Info (hidden/invisible) | |-------------------------------------------------| |-------------------------------------------------| | Contact (on/visible) | | | | | | Contact related form-part here | | | | | | | | | | | | | |-------------------------------------------------| |-------------------------------------------------| | Notes (hidden/invisible) | |-------------------------------------------------| |-------------------------------------------------| | Account Details (hidden/invisible) | |-------------------------------------------------| Problem is when I submit a form and it reloads, all the divs are hidden by default, and thus it's a disconnect for the user. I want to append the values of the visible divs to a url with the values of "on" or "off" so that on reload, the divs that were open show as such. I might have something like this ?notes=on&contact_info=on so that on reload these divs "un hide" themselves, as the user had before form submission. Kind of long-winded. Sorry. -- Frank Marion lists at frankmarion.com Keep the signal high. From nepolon at worlddomination.net Mon Aug 18 16:56:11 2003 From: nepolon at worlddomination.net (Steve Lewis) Date: Mon, 18 Aug 2003 14:56:11 -0700 Subject: [thelist] JS: Snippet to grab GET/POST value? In-Reply-To: <5.2.1.1.0.20030818165427.03782148@mail.frankmarion.com> References: <5.2.1.1.0.20030818165427.03782148@mail.frankmarion.com> Message-ID: <3F414B7B.1070700@worlddomination.net> Frank wrote: > Can someone recommend the simplest way to retrieve a get/post value > using javascript? For posts your best bet would be to add some server-side scripting to write the posted values to the returned document so you can detect them later in JS. server-side psuedocode: if $request_method = "post" { output = ' } write.output This would allow you to access the values submitted in the last request if the method == post. If the request method == get, than like .jeff said it will be in the window.location Instead of writing them to JS variables you could write them into the document using hidden input fields, which would be a more DOM-friendly solution. In this case they should be isolated in a separate form that has no obvious way to be submitted with the next request. You don't want to double the size of the form submit with every request. If you need to attempt to detect that the current page was reloaded, you will need to involve some server-side code; and in this case you should take a very direct method to achieve this: 1) generate a unique request ID that is embedded in every request 2) and embed the unique request ID from the last page in there also (these are both server-side actions) 3) then use JS to compare them. --Steve From sabaffy at mswebdevelopment.com Mon Aug 18 17:11:05 2003 From: sabaffy at mswebdevelopment.com (Steve Abaffy) Date: Mon, 18 Aug 2003 17:11:05 -0500 Subject: [thelist] Definition of "Blog" Message-ID: Hello, I have heard the term many, many times and I don't know what it means. After having gone to goole and typed in blog hoping to find a definition I am now even more confused.... so if someone would be so kind as to explain what is meant by this term, I would appreciate it. Thanks. From SCaudill at municode.com Mon Aug 18 17:09:59 2003 From: SCaudill at municode.com (Stephen Caudill) Date: Mon, 18 Aug 2003 18:09:59 -0400 Subject: [thelist] Definition of "Blog" Message-ID: <77025926DDD85A4D886C5B8A34E43E7420BCF4@exchange.internal.municode.com> Steve Abaffy on Monday, August 18, 2003 6:11 PM said: : Hello, : : I have heard the term many, many times and I don't know what it : means. After having gone to goole and typed in blog hoping to : find a definition I am now even more confused.... so if someone : would be so kind as to explain what is meant by this term, I : would appreciate it. : : Thanks. Blog: web log. (say it fast) From cparker at swatgear.com Mon Aug 18 17:11:13 2003 From: cparker at swatgear.com (Chris W. Parker) Date: Mon, 18 Aug 2003 15:11:13 -0700 Subject: [thelist] Definition of "Blog" Message-ID: <001BD19C96E6E64E8750D72C2EA0ECEE2B7F0E@ati-ex-01.ati.local> Steve Abaffy on Monday, August 18, 2003 3:11 PM said: > I have heard the term many, many times and I don't know what it > means. After having gone to goole and typed in blog hoping to find a > definition I am now even more confused.... so if someone would be so > kind as to explain what is meant by this term, I would appreciate it. Try this: http://www.marketingterms.com/dictionary/blog/ Chris. From rudy937 at rogers.com Mon Aug 18 17:17:20 2003 From: rudy937 at rogers.com (rudy) Date: Mon, 18 Aug 2003 18:17:20 -0400 Subject: [thelist] SQL Query References: <20030818143423.61348.qmail@web80606.mail.yahoo.com><006701c365b2$ef3926b0$52639c18@r9373j4yqbe8dy> <20030818161503.F73247@ns2.iguanasoft.com> Message-ID: <004a01c365d6$88481d20$52639c18@r9373j4yqbe8dy> > > > SELECT * from mytable WHERE myfield LIKE "%.%.%" > > > AND NOT myfield LIKE "%.%.%.%" the problem with this -- although i have not tested it myself (don't gots sql server here at home) -- is that A.B.C.D satisfies both the LIKE condition and also the NOT LIKE condition see, the percents mean "anything" %.%. matches A.B. and then the last % matches C.D right? From rudy937 at rogers.com Mon Aug 18 17:28:45 2003 From: rudy937 at rogers.com (rudy) Date: Mon, 18 Aug 2003 18:28:45 -0400 Subject: [thelist] Definition of "Blog" References: Message-ID: <008701c365d8$2dc78e60$52639c18@r9373j4yqbe8dy> blog (noun): a web site characterized by datestamped or even timestamped updates (although not necessarily daily or even frequently) that reveal the owner's personal experiences, feelings, thoughts, and opinions on anything, anything at all, and which follows (many, myself included, would say greatly exceeds) STURGEON'S LAW (quod vide) ;o) rudy From subscriptions at cbrody.com Mon Aug 18 17:31:09 2003 From: subscriptions at cbrody.com (Chris Brody) Date: Mon, 18 Aug 2003 23:31:09 +0100 Subject: [thelist] Definition of "Blog" In-Reply-To: Message-ID: > I have heard the term many, many times and I don't know what it > means. After having gone to goole and typed in blog hoping to > find a definition I am now even more confused Maybe you should have tried Google instead ;-) A somewhat long-winded exposition by a blogging pioneer: http://blogs.law.harvard.edu/whatMakesAWeblogAWeblog --Chris. From rytames at telusplanet.net Mon Aug 18 17:36:45 2003 From: rytames at telusplanet.net (Ryan Tames) Date: Mon, 18 Aug 2003 16:36:45 -0600 Subject: [thelist] PHP - While Loop - Success In-Reply-To: <3.0.32.20030817114458.011c4070@optonline.net> Message-ID: <3F41009D.4701.3134DDAD@localhost> On 17 Aug 2003 at 11:45, Kath wrote: > I finally got brave enough to tinker around with some of the > suggestions Ryan and Fstorr made. Excellent! Actually tinkering is a good thing, there are also lots of resources on the net, if you are looking to extend your knowledge. Theres folks here who will help you too. Ryan Tames. Portfolio: http://portfolio.tames.2y.net/ PGP Public key: finger webmaster at tames.2y.net Support an artist, through his Artistic-Original and Rare wares: http://www.cafeshops.com/ryantames Show your survival with 'I Survived the Great Blackout of 2003' tee shirt: http://www.cafeshops.com/ryantames From mail at webmarketingworx.com Mon Aug 18 17:41:20 2003 From: mail at webmarketingworx.com (Bill Haenel) Date: Mon, 18 Aug 2003 18:41:20 -0400 Subject: [thelist] What is wrong with this site? In-Reply-To: <3F414902.1070302@bath.ac.uk> Message-ID: <004e01c365d9$d9688480$6000a8c0@webmarketingworx> > The reason, as I touched on before, is simple: a > web browser is a development tool. How 'bout, "a web browser CAN BE a development tool?" One could argue that a web browser can also be used as a utility for browsing the web. > Silently fixing mistakes is NOT an aid to developers. Could be considered an aid to users, though, couldn't it? Or perhaps not. > Can you imagine the state the world's > software would be in if some C compilers "guessed" what you meant and > re-added missing braces and semi-colons for you? Can you imagine the state the web would be in if most of the browsing public used a programmer's tool to browse the web? Wait...I think you're suggesting that they do. Fair point, though. It does cause one to question: Should we be using the same tool for developing our products that our users/customers do for actually enjoying the product? No big yank here - just find it an interesting subject. Yes, we DO use our testing tools as the final product. Weird, eh? BH From jeff at jeffhowden.com Mon Aug 18 17:41:43 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Mon, 18 Aug 2003 15:41:43 -0700 Subject: [thelist] JS: Snippet to grab GET/POST value? In-Reply-To: <1061243667.4609@LISTSERV.alphashop.com> Message-ID: <1061246247.3352@LISTSERV.alphashop.com> frank, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Frank > > I have an administrative page with lots of form > information broken up into logical divs (clients > info, address, contact information, pop information > and so forth). [Visual description best seen in > mono-spaced font.] > > At the top of the page I have a "function bar" where > clicking on a name (ie: Notes) changes the class of > a div from hidden to visible. All divs are "hidden" > by default, and display only when it's name on a > "function bar" is clicked. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< make a note to yourself to avoid changing classes whenever possible. it's a very "expensive" operation that can usually be avoided by changing just a few or even just one style property value. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > Problem is when I submit a form and it reloads, all the > divs are hidden by default, and thus it's a disconnect > for the user. I want to append the values of the visible > divs to a url with the values of "on" or "off" so > that on reload, the divs that were open show as such. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< i don't quite understand what you mean by "when i submit a form and it reloads". are you talking about if there are errors you show the form to the user again, but with error messages? or, are you talking about a redirect back to the form after the user has successfully saved some changes? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > I might have something like this > > ?notes=on&contact_info=on > > so that on reload these divs "un hide" themselves, as > the user had before form submission. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< if this "reload" is the result of a redirect, then i'd pass the name of the sections to be shown as a list. something like: ?show=notes,contact_info then, i'd use this list in some sort of function called by the onload event handler to toggle the sections in that list. alternatively, you could make the section more accessible by starting out with them being all visible by default. then, in the code at the bottom of the page toggle just the ones that don't exist in the list passed in the url to hidden. the reason for not using the onload in this case is that there'll be a brief moment between when the page is loading, the user sees all the forms, and then the page collapses as it hides all of them. if you put the script inline immediately after the last of the form sections, the user probably won't even see them. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From jeff at jeffhowden.com Mon Aug 18 17:55:06 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Mon, 18 Aug 2003 15:55:06 -0700 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061242944.18012@LISTSERV.alphashop.com> Message-ID: <1061247050.13679@LISTSERV.alphashop.com> simon, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Simon Willison > > Jeff Howden wrote: > > again, as evidenced by the original request, the > > developer doesn't always intend for their work to > > be sent as text/plain. ie is doing its best to > > protect the user from this mistake. > > "Be liberal in what you accept and conservative in what > you produce" is fine for some purposes, but in web > browsers it is a down right liability. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< you'd do well to reread my original reply. from a developer's perspective, i agree. however, it's an asset from your average user's perspective. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > The reason, as I touched on before, is simple: a web > browser is a development tool. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< wrong. a web browser is a tool for navigating the web and viewing documents available online, offline, etc. it is not meant to be a debugging/development tool. the fact that so many users use it for that doesn't make it so. the fact that we have nothing better to use for development/debugging doesn't make it so. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > Most people adding content to the web are only testing > it in a single browser - if that browser is silently > fixing their mistakes for them, they'll think that their > page is correct and will consider it a job well done. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< that argument is flawed though. first, i could say the same thing about the myriad of proprietary mozilla extensions to css. more importantly though, developers only checking their work in one browser and assuming it'll work for everyone is not the fault of the browser maker. wherever and whenever possible it behooves the browser manufacturer to try to make sure the page will work, despite having things broken in it. remember, browsers are for navigating and viewing documents. they are not built for developers to debug/develop pages in. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > When a browser comes along that doesn't fix that > particular mistake the site will be broken, but the > original author will have no idea that there's a > problem. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< that's pretty much a problem of the ages with regard to upgrading. you're bound to run into all sorts of things that were forgotten/added/deprecated/obsoleted/etc. from one version to the next. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > XHTML was meant to save us from this by starting anew > with strict rules and the all important requirement > that invalid pages should refuse to render, [...] ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< whoa, stop right there. refuses to render? are you kidding? it will only take that happening on 2 or 3 of joe consumers favorite sites and he'll stop using that "broken" browser. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > [...] but unless the next version of IE (ha! there's a > joke) does proper XML parsing on pages served with an > XML doctype (as Mozilla does at the moment) even that > will be lost. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< sorry, but i don't see the problem (from a non-developer's perspective). if, as a developer, i make an innocent mistake, the user's shouldn't have to suffer. the browser should be smart enough to work around the mistake (providing it's not too big). ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > Silently fixing mistakes is NOT an aid to developers. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< agreed. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > If you've left out a closing table tag and the page > fails to render (or even better fails with a warning > message telling you you forgot to close the tag) you fix > it, save and reload. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< agreed, but remember, the browser is not a development/debugging environment. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > If the browser silently fixes it for you you never even > realise there's a problem. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< agreed. the problem isn't the browser though. the problem is the developer not taking the time to make sure the page is valid html. if that means running it through an html validator - great. if that means using an ide that automatically closes tags that require end tags - great. but, let's not get into the business of alittle mistake like that ruining the experience of the user. the user should be shielded from our mistakes as much as possible. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > Can you imagine the state the world's software would be > in if some C compilers "guessed" what you meant and > re-added missing braces and semi-colons for you? Sure, > they'd work - but no one who looked at the source code > would know why! HTML should have been the same, but > smart thinking by browser vendors doomed us to an > endless cycle of undocumented "enhancements" and badly > formed web pages. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< c is a compiled language with strictly defined rules and procedures that compilers have followed from the beginning. html is a markup language which had browsers using it before there was really a standard or set of rules in place to enforce. so, we're playing catchup. in the meantime, the tool users use to view all this broken html should still display the document as best it can. in summary, i agree that this behavior of "fixing" "broken" code is bad for developers. however, i'll disagree wholeheartedly that it's bad for users. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From John.Bedard at ngc.com Mon Aug 18 17:54:06 2003 From: John.Bedard at ngc.com (John.Bedard at ngc.com) Date: Mon, 18 Aug 2003 16:54:06 -0600 Subject: [thelist] Definition of "Blog" Message-ID: http://www.google.com/search?q=what+is+the+definition+of+a+blog -----Original Message----- From: Steve Abaffy [mailto:sabaffy at mswebdevelopment.com] Sent: Monday, August 18, 2003 4:11 PM To: Java Subject: [thelist] Definition of "Blog" Hello, I have heard the term many, many times and I don't know what it means. After having gone to goole and typed in blog hoping to find a definition I am now even more confused.... so if someone would be so kind as to explain what is meant by this term, I would appreciate it. Thanks. -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From cs1spw at bath.ac.uk Mon Aug 18 17:59:32 2003 From: cs1spw at bath.ac.uk (Simon Willison) Date: Mon, 18 Aug 2003 23:59:32 +0100 Subject: [thelist] What is wrong with this site? In-Reply-To: <004e01c365d9$d9688480$6000a8c0@webmarketingworx> References: <004e01c365d9$d9688480$6000a8c0@webmarketingworx> Message-ID: <3F415A54.3000400@bath.ac.uk> Bill Haenel wrote: >>The reason, as I touched on before, is simple: a >>web browser is a development tool. > > How 'bout, "a web browser CAN BE a development tool?" > > One could argue that a web browser can also be used as a utility for > browsing the web. Hehe, you've got me there. Of coruse a browser is fore-most a tool for browsing the web. My point remains clear though: it has a dual purpose as a development tool, and as such the web would be a much better place if browsers had never started competing over who could accept the lousiest HTML. Unfortunately they did, and the damage is permanent. I don't have to like it though. >>Silently fixing mistakes is NOT an aid to developers. > > Could be considered an aid to users, though, couldn't it? Or perhaps > not. It's a false favour. In the short term it's good for the users; in the long term it's bad for them as it cripples new browsers (due to a polluted web that they must try to unrabel) thus discouraging competition and slowing innovation. > Can you imagine the state the web would be in if most of the browsing > public used a programmer's tool to browse the web? Wait...I think you're > suggesting that they do. Fair point, though. It does cause one to > question: Should we be using the same tool for developing our products > that our users/customers do for actually enjoying the product? What a fascinating question. I'd say not: while we should of course /test/ in the browser used by our users, we would be better to /develop/ in a tool that is better suited for development. For me, that means Mozilla or Mozilla Firebird - while they can be thought of as end user tools as well, they provide a stricter debugging environment (especially if you develop in XHTML with the correct doctype) and far better tools, such as the DOM Inspector and the Javascript console. They still double up as end user tools though. I suppose in a medium such as the web where markup is interpreted (no compile stage) the development tool and the end-user tool logically ends up being the same thing. Cheers, Simon From evolt at pixelwright.com Mon Aug 18 18:08:43 2003 From: evolt at pixelwright.com (James Aylard) Date: Mon, 18 Aug 2003 16:08:43 -0700 Subject: [thelist] What is wrong with this site? References: <1061234195.5777@LISTSERV.alphashop.com> <3F414902.1070302@bath.ac.uk> Message-ID: <00a201c365dd$ac904660$2860398a@newcos.com> Simon Willison wrote: > Jeff Howden wrote: >> again, as evidenced by the original request, the developer doesn't >> always intend for their work to be sent as text/plain. ie is doing >> its best to protect the user from this mistake. > > "Be liberal in what you accept and conservative in what you produce" > is fine for some purposes, but in web browsers it is a down right > liability. The reason, as I touched on before, is simple: a web > browser is a development tool. [snip] But Jeff's argument, as I understand it, is that Internet Explorer is _not_ intended as a development tool, but instead is intended as a product for end users. In virtually every respect, IE is designed to shield users from the complexities and potential pitfalls of web browsing (hence its "friendly" HTTP error messages, its simple and largely inflexible user interface, etc.). Why should the average user see a blank window simply because a server-side script failed to write a closing table tag? Why should the average user see a stream of unintelligible html code simply because the server isn't set to generate the correct content-type header? Why should the user be confronted with a confusing "404 Error" page, having no clue what it means? Microsoft's answer is: they shouldn't. And IE is a product of that assumption. > Most people adding content to the web are only > testing it in a single browser - if that browser is silently fixing > their mistakes for them, they'll think that their page is correct and > will consider it a job well done. When a browser comes along that > doesn't fix that particular mistake the site will be broken, but the > original author will have no idea that there's a problem. So, we're back to developer laziness. There are numerous tools out there in which to test a site and to verify the validity of its code. But since many developers, according to your own argument, never bother to rigorously test their sites, Microsoft has decided that the hapless end user should not be the one to shoulder the burden of some of the more common careless coding errors. > This in turn leads to a downwards spiral. These days, if you want to > write a new web browser you have to not only implement a number of > large W3C specifications, but you also have to reverse-engineer > Internet Explorer's thousands of undocumented "fixes" or your browser > will be unable to render the vast majority of the web, and no one > will use it. Meaningless. It is the complexity of complying with web standards that makes the production of a modern browser so incredibly daunting, not "reverse-engineering" IE's so-called fixes. > It's not just bad practise, it's down right > anti-competitive, and unfortunately the market has got to a point now > where the situation is irreversible (browsers can't get sticter > because old pages will break). You can't blame Microsoft alone for that. The smoke still rises from the rubble of the "browser wars" in which Netscape fully participated. Netscape's own (and arguably worse) proprietary "improvements" to existing standards still exact a toll of hair from the heads of many developers. It is only because IE won that war that few developers still bother with Netscape's ancient proprietary features. That Microsoft simply does not drop old proprietary features (as Netscape did while developing Navigator 5) is another example of why IE is clearly designed primarily for the end-user, and not for the developer. That's what Mozilla is for, after all. :) James Aylard evolt at pixelwright.com From leemark at isu.edu Mon Aug 18 18:21:38 2003 From: leemark at isu.edu (Mark Lee) Date: Mon, 18 Aug 2003 17:21:38 -0600 Subject: [thelist] What is wrong with this site? In-Reply-To: <004e01c365d9$d9688480$6000a8c0@webmarketingworx> References: <004e01c365d9$d9688480$6000a8c0@webmarketingworx> Message-ID: <3F415F82.9000500@isu.edu> I missed the beginning of this thread, so forgive me if I'm way off base, but here goes: Bill Haenel wrote: > Should we be using the same tool for developing our products >that our users/customers do for actually enjoying the product? > Yes we should, in the sense that we should check our product to see that it works as expected in the environment that the end-users are likely to see it (i.e. I.E. ;-| ). The issue, on a smaller scale, is that /whether a page is rendered as expected in Internet Explorer should not be the only standard of whether it 'works'. /That's why professionals tend to use tools like validators and check their work in as many different environments as possible. The larger issue is that the low barriers to entry for publishing on the web, while quite possibly the biggest reason for the success of the web, is a double edged sword. Web pages are quite easy to make, but quite difficult to make well. That's another can of worms though. Mark From evolt at david.us-lot.org Mon Aug 18 18:24:17 2003 From: evolt at david.us-lot.org (David Dorward) Date: Tue, 19 Aug 2003 00:24:17 +0100 Subject: [thelist] Definition of "Blog" In-Reply-To: References: Message-ID: <20030818232416.GA18921%david@us-lot.org> On Mon, Aug 18, 2003 at 05:11:05 -0500, Steve Abaffy wrote: > I have heard the term many, many times and I don't know what it means. After > having gone to goole and typed in blog hoping to find a definition I am now > even more confused.... weB LOG A journal presented in HTML form, commonly provided with additional formats such as RSS. -- David Dorward http://dorward.me.uk/ From cs1spw at bath.ac.uk Mon Aug 18 18:27:31 2003 From: cs1spw at bath.ac.uk (Simon Willison) Date: Tue, 19 Aug 2003 00:27:31 +0100 Subject: [thelist] What is wrong with this site? In-Reply-To: <00a201c365dd$ac904660$2860398a@newcos.com> References: <1061234195.5777@LISTSERV.alphashop.com> <3F414902.1070302@bath.ac.uk> <00a201c365dd$ac904660$2860398a@newcos.com> Message-ID: <3F4160E3.8020500@bath.ac.uk> James Aylard wrote: > Why should the average user see a blank window simply because a > server-side script failed to write a closing table tag? Why should the > average user see a stream of unintelligible html code simply because the > server isn't set to generate the correct content-type header? Why should the > user be confronted with a confusing "404 Error" page, having no clue what it > means? Microsoft's answer is: they shouldn't. And IE is a product of that > assumption. See my reply to Bill Haenel, where I back-pedalled considerably. In the heat of the moment I had completely failed to acknowledge IE's position as a tool for the user first, a development tool second. I was wrong. I still think that fixing dumb developer errors can be taken too far, and when it is it becomes anti-competitive (deliberate or not). > So, we're back to developer laziness. There are numerous tools out there > in which to test a site and to verify the validity of its code. But since > many developers, according to your own argument, never bother to rigorously > test their sites, Microsoft has decided that the hapless end user should not > be the one to shoulder the burden of some of the more common careless coding > errors. Here's the catch-22: if browsers had never started auto-fixing things, they wouldn't have to compensate for careless coding errors as lazy developers would have spotted them (nothing makes you fix your page faster than it not loading when you go to check it out in your browser). As I've already pointed out though, the damage is already done and there's no way of going back. > Meaningless. It is the complexity of complying with web standards that > makes the production of a modern browser so incredibly daunting, not > "reverse-engineering" IE's so-called fixes. I completely disagree here. Implementing W3C standards is daunting, but replicating IE's undocumented fixes verges on the impossible. You would be right to blame this on developer laziness, but you would also be right to blame it on browser vendors for allowing that laziness to go unpunished. At least propretary "improvements" to existing standards as fosited by Netscape and Microsoft during the browser wars were logically specified and well documented - new browsers could choose to implement them or ignore them at will, and would at least have documentation to work from. There's no documentation for what IE does when it encounters garbage markup, so if you want your new browser to render that garbage the way the author intended you haven't even a fighting chance. I'm going to back away from this discussion before it turns in to one of those threads that goes on for days (talk about a can of worms!), but I'm happy to concede that my original rant missed some important points. I do think though that this issue highlights an interesting problem that arises when the development tool and the end user tool are one and the same. Cheers, Simon Willison From cs1spw at bath.ac.uk Mon Aug 18 18:29:26 2003 From: cs1spw at bath.ac.uk (Simon Willison) Date: Tue, 19 Aug 2003 00:29:26 +0100 Subject: [thelist] Definition of "Blog" In-Reply-To: <008701c365d8$2dc78e60$52639c18@r9373j4yqbe8dy> References: <008701c365d8$2dc78e60$52639c18@r9373j4yqbe8dy> Message-ID: <3F416156.2050808@bath.ac.uk> rudy wrote: > blog (noun): > > a web site characterized by datestamped or even timestamped updates > (although not necessarily daily or even frequently) that reveal the owner's > personal experiences, feelings, thoughts, and opinions on anything, anything > at all, and which follows (many, myself included, would say greatly exceeds) > STURGEON'S LAW (quod vide) Don't forget permalinks: entries on a blog should always provide a "permalink" (or permanent link) to that individual entry. This allows other blogs to link to that entry as part of an ongoing discussion, which allows blogs to function as a discussion medium (similar in a way to a mailing list or forum) rather than existing in isolation. Cheers, Simon My blog: http://simon.incutio.com/ ;) From cvos at netpaths.net Mon Aug 18 19:10:30 2003 From: cvos at netpaths.net (Cayley Vos) Date: Mon, 18 Aug 2003 17:10:30 -0700 Subject: [thelist] [ot] free stock quote script In-Reply-To: References: Message-ID: <1061251830.452cf6ef393d5@webmail.spamcop.net> i am looking to embed a stock quote (NASAQ, NYSE and S&P) in a website. Is there free code, similar to the news features offered by moreover.com to embed this in a website? im looking to do it in PHP, not javaScript, or worse Java. When making search engine friendly websites, don't put your keyword phrases in invisible places such as meta tags. Put them in the title tags and main body copy. Search engines only index what users can see - put your keywords out in the open. Cayley Vos 310.372.3086 http://www.netpaths.net | design | hosting | programming | search engines From khallman at wrack.org Mon Aug 18 19:50:30 2003 From: khallman at wrack.org (Kelly Hallman) Date: Mon, 18 Aug 2003 17:50:30 -0700 (PDT) Subject: [thelist] Should browsers fix bad code? (was: What is wrong with this site?) In-Reply-To: <3F4160E3.8020500@bath.ac.uk> Message-ID: I'd prefer to control this behavior in IE; like a 'strict rendering mode'. Alas, all Microsoft ware is permanently in dummy mode. I've found when Microsoft tries to think for a person, they usually get it wrong. However, nothing is worse than a blank page. The first blank page that comes up in a browser I'm testing, I know it will never be a contender. There is just too much bad HTML out there. If you've got to load IE to see one page, you might as well use it for every page. (I'm not suggesting doing that, I just figure that's the basic mentality, and MS knows that.) If IE wasn't able to render insanely broken HTML, how would any Microsoft product be able to have an HTML output feature? They'd have to then write good code themselves, which would mean that it would also work on other browsers of the day -- then there's less incentive to move everyone in the whole company to a Windows platform because 'it works better' ... ..... Another thing: what about situations where you really don't have control over whether the code is well formed or not, such as a CMS that allows the administrative user to input HTML into sections of a (debugged) template? Better to have it render broken than to not render at all. Simply previewing such changes would make the back button the only recourse. -- Kelly Hallman http://wrack.org/ From roselli at earthlink.net Mon Aug 18 20:47:26 2003 From: roselli at earthlink.net (aardvark) Date: Mon, 18 Aug 2003 21:47:26 -0400 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061247050.13679@LISTSERV.alphashop.com> References: <1061242944.18012@LISTSERV.alphashop.com> Message-ID: <3F41496E.31196.30EDB4@localhost> see, i *don't* want the browser to make a guess based on a file extension when the mime type is clearly something else... if i choose to passa an .html file as plaintext for some reason, i would want the browser to honor that, and i would hope that the developer would have enough skill to have *chosen* to configure the server that way... and yes, there are cases where i've wanted to pass a page with an .htm, .html, or even .asp extension as plain text... but think of another scenario, one that comes up on this list semi- frequently... you have an MS Word file, with a .doc extension that you want users to download, but you don't want to have to stuff it into a .zip or otherwise modify it... one of the ways many developers handle this is by changing its mime type to application/octet-stream, forcing the browser to ask what to do with the file, instead of just opening it within the browser... so, in this case, would you prefer the browser to honor the file extension, or the mime type set by the server? (wow, two posts in one month... maybe i'm coming back...) -- yet another book: The Web Professional's Handbook http://amazon.com/exec/obidos/ASIN/1904151221/evoltorg02-20 ISBN: 1904151221 From shortestpath at yahoo.com Mon Aug 18 20:51:57 2003 From: shortestpath at yahoo.com (shortestpath) Date: Mon, 18 Aug 2003 18:51:57 -0700 (PDT) Subject: [thelist] detect held-down mouse button Message-ID: <20030819015157.69981.qmail@web41112.mail.yahoo.com> is there a way to detect a held-down button, -while- the mouse is moving? Consider events in two cases: 1. mousedown, mousemove, mouseup 2. mousemove I want to detect during a mousemove event, if a mousedown has occurred. thanks in advance, -alex __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From jalam at cc.ysu.edu Mon Aug 18 21:07:12 2003 From: jalam at cc.ysu.edu (Javed Alam) Date: Mon, 18 Aug 2003 22:07:12 -0400 Subject: [thelist] What is wrong with this site? In-Reply-To: <3F4160E3.8020500@bath.ac.uk> References: <1061234195.5777@LISTSERV.alphashop.com> <3F414902.1070302@bath.ac.uk> <00a201c365dd$ac904660$2860398a@newcos.com> <3F4160E3.8020500@bath.ac.uk> Message-ID: <3F418650.6010100@cc.ysu.edu> What happened in the past when the browser war going on is an ancient history in tech times. Things have moved on, however its effects still persist in form of "this site can be best viewed by "fill in the name of your favorite browser". How about developers slowly start moving towards structured documents and promote xhtml/xml/css with well formed documents and start avoiding the browser specific extension if it is possible. This will set a trend and may icrease the life of the documnets they are creating. What happens when MS decides to drop IE and every application they are building becomes a browser as well as a MS SOAP client. This is not far fetched. Anybody who has tried the webservices tool kit for the MS office will know it. They have a neat demo of webservices for stock application built into the EXEL. MS is a very smart company, they understand how to add value to their applications. Opensource still is trying to catch up with the windows desktop while MS is in the process of transforming it with the extensive use of XML. Javed Simon Willison wrote: > James Aylard wrote: > >> Why should the average user see a blank window simply because a >> server-side script failed to write a closing table tag? Why should the >> average user see a stream of unintelligible html code simply because the >> server isn't set to generate the correct content-type header? Why >> should the >> user be confronted with a confusing "404 Error" page, having no clue >> what it >> means? Microsoft's answer is: they shouldn't. And IE is a product of >> that >> assumption. > > > See my reply to Bill Haenel, where I back-pedalled considerably. In > the heat of the moment I had completely failed to acknowledge IE's > position as a tool for the user first, a development tool second. I > was wrong. I still think that fixing dumb developer errors can be > taken too far, and when it is it becomes anti-competitive (deliberate > or not). > >> So, we're back to developer laziness. There are numerous tools >> out there >> in which to test a site and to verify the validity of its code. But >> since >> many developers, according to your own argument, never bother to >> rigorously >> test their sites, Microsoft has decided that the hapless end user >> should not >> be the one to shoulder the burden of some of the more common careless >> coding >> errors. > > > Here's the catch-22: if browsers had never started auto-fixing things, > they wouldn't have to compensate for careless coding errors as lazy > developers would have spotted them (nothing makes you fix your page > faster than it not loading when you go to check it out in your > browser). As I've already pointed out though, the damage is already > done and there's no way of going back. > >> Meaningless. It is the complexity of complying with web standards >> that >> makes the production of a modern browser so incredibly daunting, not >> "reverse-engineering" IE's so-called fixes. > > > I completely disagree here. Implementing W3C standards is daunting, > but replicating IE's undocumented fixes verges on the impossible. You > would be right to blame this on developer laziness, but you would also > be right to blame it on browser vendors for allowing that laziness to > go unpunished. At least propretary "improvements" to existing > standards as fosited by Netscape and Microsoft during the browser wars > were logically specified and well documented - new browsers could > choose to implement them or ignore them at will, and would at least > have documentation to work from. There's no documentation for what IE > does when it encounters garbage markup, so if you want your new > browser to render that garbage the way the author intended you haven't > even a fighting chance. > > I'm going to back away from this discussion before it turns in to one > of those threads that goes on for days (talk about a can of worms!), > but I'm happy to concede that my original rant missed some important > points. I do think though that this issue highlights an interesting > problem that arises when the development tool and the end user tool > are one and the same. > > Cheers, > > Simon Willison > -- *Javed Alam, *Ph.D. *Professor* *Civil/Environmental/Chemical Engineering Department* Youngstown State University Youngstown, Ohio 44555 Phone 330-941-3029 Fax 330-941-3265 e-mail jalam at cc.ysu.edu web: http://www.eng.ysu.edu/~jalam/ ====================================================== "Knowledge will forever govern ignorance, and a people who mean to be their own governors, must arm themselves with the power knowledge gives. A popular government without popular information or the means of acquiring it, is but a prologue to a farce or a tragedy or perhaps both." - James Madison /(Fourth President of the United States)/ "Facts are stupid things..." - Ronald Reagan /(40th President of the United States)/ ======================================================== From roselli at earthlink.net Mon Aug 18 21:08:03 2003 From: roselli at earthlink.net (aardvark) Date: Mon, 18 Aug 2003 22:08:03 -0400 Subject: [thelist] detect held-down mouse button In-Reply-To: <20030819015157.69981.qmail@web41112.mail.yahoo.com> Message-ID: <3F414E43.11828.43CC3E@localhost> while not definitive, this should get you started: http://www.webreference.com/js/column9/newmouseevents.html JavaScript 1.2 introduces several new mouse click events: - mousedown - mouseup - dblclick - mousemove don't ask me about support, as i tend to not rely on JS this much... found this info as the second link on a search on google: http://google.com/search?q=mouse+events+in+javascript i didn't bother clicking any more, i suspect you can scroll down the page and see what else applies... > From: shortestpath > > is there a way to detect a held-down button, -while- > the mouse is moving? Consider events in two cases: > 1. mousedown, mousemove, mouseup > 2. mousemove > > I want to detect during a mousemove event, if a mousedown > has occurred. -- yet another book: The Web Professional's Handbook http://amazon.com/exec/obidos/ASIN/1904151221/evoltorg02-20 ISBN: 1904151221 From jeff at jeffhowden.com Mon Aug 18 21:12:24 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Mon, 18 Aug 2003 19:12:24 -0700 Subject: [thelist] detect held-down mouse button In-Reply-To: <1061257776.28797@LISTSERV.alphashop.com> Message-ID: <1061258887.8989@LISTSERV.alphashop.com> alex, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: shortestpath > > is there a way to detect a held-down button, -while- > the mouse is moving? Consider events in two cases: > 1. mousedown, mousemove, mouseup > 2. mousemove > > I want to detect during a mousemove event, if a > mousedown has occurred. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< not directly, but you can programmatically. have a variable that you use to keep track of the state of the mousebutton. you'll need to trigger the value to change with the onmousedown and onmouseup events. then, in your mousemove scripting, check to see if what boolean value this variable contains. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From jeff at jeffhowden.com Mon Aug 18 23:15:55 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Mon, 18 Aug 2003 21:15:55 -0700 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061257494.1855@LISTSERV.alphashop.com> Message-ID: <1061266298.14564@LISTSERV.alphashop.com> aardvark, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: aardvark > > see, i *don't* want the browser to make a guess based on > a file extension when the mime type is clearly something > else... if i choose to passa an .html file as plaintext > for some reason, i would want the browser to honor that, > and i would hope that the developer would have enough > skill to have *chosen* to configure the server that > way... ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< i feel your pain. unfortunately, it's all too common that some server admin dweeb that's only 4 chapters into his ntsysadminin24hours by sams has funked things up and doesn't even know it. you'd hope the developer would have their head screwed on right just enough to be able to figure out the problem and correct it, but that seems a rarity too. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > and yes, there are cases where i've wanted to pass a > page with an ..htm, .html, or even .asp extension as > plain text... ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< i've been in the same boat. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > but think of another scenario, one that comes up on this > list semi-frequently... you have an MS Word file, with a > .doc extension that you want users to download, but you > don't want to have to stuff it into a .zip or otherwise > modify it... > > one of the ways many developers handle this is by > changing its mime type to application/octet-stream, > forcing the browser to ask what to do with the file, > instead of just opening it within the browser... > > so, in this case, would you prefer the browser to honor > the file extension, or the mime type set by the server? ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< do you want me to answer while wearing my developer hat or my user hat? *evil grin* seriously though, there's something to be said about thinking of this whole "mess" from the user's perspective. *maybe* the user wants all word docs to open in their browser. maybe they've gotten use to pdfs doing the same thing and like that behavior. aside from the ability edit (though most often not save) content brought into an embedded instance of word, excel, "jack's mpg coupler", etc., there isn't really anything categorically different about loading all sorts of content types into the browser whenever/wherever there's some sort of embeddable viewer for that particular type of content. i'm not saying every user is smart enough to figure out how to get the document if they don't want it to load within the browser. i'm also not saying every user is smart enough to figure out how to change certain mime-type handlers in ie to suit their preferred behavior. however, what i am saying is that making assumptions about intended behavior for some users will no doubt screw with intended behavior for those who have deliberately made that choice. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From bill at stimilon.org Tue Aug 19 01:08:31 2003 From: bill at stimilon.org (Bill McBain) Date: Tue, 19 Aug 2003 02:08:31 -0400 Subject: [thelist] photo usage/consent question Message-ID: <000001c36618$51858920$e8c83018@mcbain> Hey all, I work for a summer camp which is owned by a private organization. Photography is nowhere in my contract. I am a counselor. I took thousands of photos this summer, and put together a staff slideshow. I then put this slideshow on my personal website. Some of the photos have campers and staff members under 18 in them. I got a call from my (former because my seasonal contract ended) boss tonight telling me to pull the pictures. He says that I am violating laws because I don't have a release form for public consumption of these photos. My question is: Is my personal website a public area? -Bill PS. I plan to work here next summer too, and I like my bosses, and so I have complied for now, but I just want to know whether legally he or I am right. From Ed at ComSimplicity.com Tue Aug 19 01:37:02 2003 From: Ed at ComSimplicity.com (Ed McCarroll) Date: Mon, 18 Aug 2003 23:37:02 -0700 Subject: [thelist] photo usage/consent question In-Reply-To: <000001c36618$51858920$e8c83018@mcbain> Message-ID: > He says that I am violating laws because I don't have a > release form for public consumption of these photos. > My question is: Is my personal website a public area? That might depend upon what country you are in. Whether or not it's legal, your boss is right to be concerned about upsetting the parents. (Got kids?) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ed McCarroll MailTo:Ed at ComSimplicity.com ComSimplicity (310) 838-4330 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From madstone at madstone.net Tue Aug 19 03:23:05 2003 From: madstone at madstone.net (Jorah Lavin) Date: Tue, 19 Aug 2003 04:23:05 -0400 Subject: [thelist] file viewers vs file editors In-Reply-To: <004e01c365d9$d9688480$6000a8c0@webmarketingworx> References: <3F414902.1070302@bath.ac.uk> Message-ID: <5.2.1.1.0.20030819035629.00a04e60@pop3.norton.antivirus> At 18:41 08/18/03, Bill Haenel wrote: >No big yank here - just find it an interesting subject. Yes, we DO use >our testing tools as the final product. Weird, eh? Widen your view. (BTW, no nerves here, either, I'm seeing it as an interesting topic, as well). If I'm recalling my Web history correctly, when Tim Berners-Lee invented HTML and the browser, he envisioned the browser being used to _edit_ the pages, too. I think that Amaya is set up that way, even now, so the idea may not be strange, even though it may be weird. Anyway, in pre-Web days, a typesetter working in a computer environment would have used a typesetting program to design the page (possibly! it is also possible that the typesetter software just spit out columns of type and the page was assembled by hand... the small newspaper where I worked in 1993 was still doing that) and the product was viewed in printed form. It wouldn't be very pleasant to read a document in PageMaker, and very few people will use PhotoShop to view .jpg files. However, while I don't doubt that text/document editors such as MS Word were originally designed to use the same way as PageMaker... a content provider or document editor creates a document which is viewed in the hard-copy version, I suspect that a _large_ percentage of Word documents are actually viewed _in Word_ these days... one of the side effects of the move of the computer from primarily a production tool to (in my life) primarily a communication tool. I'm also typing this note to you in the same editor, -Eudora- that I used to read your original note... doesn't seem strange or weird. Next point: This is something that my clean-HTML-loving self took a long time to accept: Most (the vast majority, I suspect) of the people putting content online are NOT DEVELOPERS! They are authors, typists, designers. It is right and proper to hide the code from them, the same way that the "code" is hidden from me in a Word document that I'm writing, the same way it is hidden from me in PageMaker. I finally realized that the _real_ reason that I hated tools (hack, cough, spit) like FrontPage _isn't_ because they hide the HTML from the content creator, but because the HTML they output was so atrocious that there was a good chance that you wouldn't even be able to view the result in anything but IE. (I'm talking about FP in the days when I first encountered it, 5 or 6 years ago... I'm told that there have been improvements, and I'm not trying to start a flame fest). The model where a file is only viewable in the software that created it, which is somewhat acceptable in the case of MS Word documents, isn't acceptable _to me_ in the Web environment, where HTML docs were supposed to be viewable, even if they didn't look exactly the same way, in any decent browsing tool. For what it is worth, I do my preliminary testing on HTML files in my editor's code-checking subroutine, then validate it against an online validator. Then I check to see if it is readable in IE, the only browser my audience is using. So I'm not really testing with the final product, except in the sense that someone who builds a road does the final "check" by driving on the road... Just my thoughts, (at 4 in the morning) and as a wise man once said, they are worth what you paid for them. -Jorah From madstone at madstone.net Tue Aug 19 03:35:37 2003 From: madstone at madstone.net (Jorah Lavin) Date: Tue, 19 Aug 2003 04:35:37 -0400 Subject: [thelist] Should browsers fix bad code? In-Reply-To: References: <3F4160E3.8020500@bath.ac.uk> Message-ID: <5.2.1.1.0.20030819043147.00a0b650@pop3.norton.antivirus> At 20:50 08/18/03, you wrote: >If IE wasn't able to render insanely broken HTML, how would any Microsoft >product be able to have an HTML output feature? Hee hee! My thoughts exactly. Anyone who has had to look at MS Word-generated HTML will agree, too, I think! You should see the "valid" HTML that is behind the CMS at my work, though (an MS-CMS, not surprisingly) When I plug my HTML into it, my HTML is the ONLY valid HTML in that page... until I save it to the system, which promptly re-formats it into garbage. Anyway, the administrative user should probably be only typing in the CMS, not pasting in HTML! (of course, that is what they are doing if they paste Word content into the WYSIWYG editor, but most of them probably don't know that) (or is it RTF?) -Jorah From mikek at brightstorm.co.uk Tue Aug 19 05:03:45 2003 From: mikek at brightstorm.co.uk (mike karthauser) Date: Tue, 19 Aug 2003 11:03:45 +0100 Subject: [thelist] photo usage/consent question In-Reply-To: Message-ID: on 19/8/03 7:37 am, Ed McCarroll at Ed at ComSimplicity.com wrote: > That might depend upon what country you are in. > > Whether or not it's legal, your boss is right to be concerned about > upsetting the parents. (Got kids?) I've worked on web sites for education and they have had the same concerns about publication of pictures of kids. The main reason is supposably so kids cannot be traced by the dodgy. In your case I cannot see how anonymous pictures of kids is going to allow anyone to trace them back to their house as you no doubt do don include their names or addresses. In the old days (1980's) if we saw a picture of us on the tv or in the paper we were well chuffed. If parents are so stuffy that they wouldn?t want pictures of their kids enjoying themselves on the net than that is sad. Your personal website is I guess in the public domain as the public could get access - I think it should depend on how many people are visiting it though. If you password protected your gallery that would be even worse though.. Incidentally the school ended up publishing pictures of their own kids. I don?t know whether they got parental consent - http://www.hotwells.bristol.sch.uk/class3.html - you are hardly able to identify the children. The child safely debate is really flawed as it is proven that people that interfere with children are usually friends of the family anyway. -- Mike Karthauser Managing Director - Brightstorm Ltd Email >> mikek at brightstorm.co.uk Web >> http://www.brightstorm.co.uk Tel >> 0117 9426653 (office) 07939 252144 (mobile) Snailmail >> Unit 8, 14 King Square, Bristol BS2 8JJ From mailing.lists at creed.co.uk Tue Aug 19 05:29:33 2003 From: mailing.lists at creed.co.uk (Andy Warwick) Date: Tue, 19 Aug 2003 11:29:33 +0100 Subject: [thelist] Looking for a regular expression for Content-Type, as per RFC2045 Message-ID: <0666368D-D230-11D7-8B12-000A959F2F8E@creed.co.uk> Hi I'm looking for a regular expression (for PHP) to validate Content-Type headers, as per RFC2045. I'm writing a form handling class, and need to do some error checking. According to spec., the form's enctype attribute must comply with the afore-mentioned RFC. I could go with the basics of 'multipart/form-data' and 'application/x-www-form-urlencoded', but that wouldn't be accurate according to spec. Any one have one handy, or can point me at a good source? TIA -- Andy Warwick Creed New Media Design w: http://www.creed.co.uk From andy at message.uk.com Tue Aug 19 05:35:53 2003 From: andy at message.uk.com (Andy Budd) Date: Tue, 19 Aug 2003 11:35:53 +0100 Subject: [thelist] photo usage/consent question In-Reply-To: <000001c36618$51858920$e8c83018@mcbain> Message-ID: This could be tricky. If you took the pictures during work, it could be argued that they own the copyright to those photos. If you took the photos in your free time then you probably own copyright. If you are using the pictures to report something you *probably* don't need that persons consent to use the pictures. However if this is not the case you *probably* should get the consent of the individuals photographed before you use them. Most professional photographers get people to sign a "model release form" which signs away the models rights to the image. The best thing for you to do is too seek some legal advice or speak to a professional photographer. Andy Bill McBain wrote: > Hey all, > > > I work for a summer camp which is owned by a private organization. > Photography is nowhere in my contract. I am a counselor. I took > thousands of photos this summer, and put together a staff slideshow. I > then put this slideshow on my personal website. Some of the photos have > campers and staff members under 18 in them. I got a call from my > (former > because my seasonal contract ended) boss tonight telling me to pull the > pictures. He says that I am violating laws because I don't have a > release form for public consumption of these photos. > My question is: Is my personal website a public area? From roselli at earthlink.net Tue Aug 19 06:06:55 2003 From: roselli at earthlink.net (aardvark) Date: Tue, 19 Aug 2003 07:06:55 -0400 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061266298.14564@LISTSERV.alphashop.com> References: <1061257494.1855@LISTSERV.alphashop.com> Message-ID: <3F41CC8F.17653.23124BB@localhost> > From: "Jeff Howden" [...] > > so, in this case, would you prefer the browser to honor > > the file extension, or the mime type set by the server? > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< [...] > seriously though, there's something to be said about thinking of this > whole "mess" from the user's perspective. *maybe* the user wants all > word docs to open in their browser. maybe they've gotten use to pdfs > doing the same thing and like that behavior. aside from the ability > edit (though most often not save) content brought into an embedded > instance of word, excel, "jack's mpg coupler", etc., there isn't > really anything categorically different about loading all sorts of > content types into the browser whenever/wherever there's some sort of > embeddable viewer for that particular type of content. this is true, but i can tell you that in cases where i've changed the mime type of a .doc is because we found the users pulling their hair out about IE opening the .doc in the browser... at that point, the requirements were more than just requirements, they were about making the client happy after a bad experience (caused by the browser making a decision for them)... obviously there are exceptions... > i'm not saying every user is smart enough to figure out how to get the > document if they don't want it to load within the browser. i'm also > not saying every user is smart enough to figure out how to change > certain mime-type handlers in ie to suit their preferred behavior. > however, what i am saying is that making assumptions about intended > behavior for some users will no doubt screw with intended behavior for > those who have deliberately made that choice. [...] agreed. just as it can screw with the choice made by the developer to handle for exceptions, special cases, or just simple requests... either way, i want the durned browser to honor my mime types... -- yet another book: The Web Professional's Handbook http://amazon.com/exec/obidos/ASIN/1904151221/evoltorg02-20 ISBN: 1904151221 From stephane.deschamps at francetelecom.com Tue Aug 19 06:29:07 2003 From: stephane.deschamps at francetelecom.com (DESCHAMPS =?iso-8859-1?Q?St=E9phane?= DSI/SICOR) Date: Tue, 19 Aug 2003 13:29:07 +0200 Subject: [thelist] Bold vs. Strong In-Reply-To: Message-ID: <005201c36645$1ad1f5d0$ba10b30a@FTUCOKT82QZJU6> Hiya all, This whole discussion has opened up a breach in my oh-so-dogmatic mind. I had never thought of the opposition img/object as the same kind of opposition as b/strong, so I have to adapt to this new mode of thinking. Keeping the img tag seems to me reasonable, be it only for simplicity reasons. But. If something is bold, in the *print* sense of the word, then it's because of some emphasis, hence the adoption of strong that is more er... semantic than visual. If I had to *still* use b, it would be as a mere synonym for strong (what it has always been). if you want a truly visual-only style on a certain span of words, what's better, semantically, B or STRONG? or SPAN? what if the visual-only style you want is bolding? what if you want visual-only bolding and no emphasis? my advice: use B for B, use STRONG for STRONG avoid SPAN >From my understanding that doesn't qualify. Bold today, red and thin tomorrow, orange and italic the day after, you know the Powers-That-Be as well as I do. If I really need some fun-looking part of the page, inline, then I'll go for a span. Although, yes, the bigger the CSS file, the harder it is to maintain it. s t e f (aka notabene) http://evolt.org/user/notabene/22696/ http://www.nota-bene.org/ From R.Livsey at cache-22.co.uk Tue Aug 19 06:35:10 2003 From: R.Livsey at cache-22.co.uk (RLivsey) Date: Tue, 19 Aug 2003 12:35:10 +0100 Subject: [thelist] detect held-down mouse button In-Reply-To: <20030819015157.69981.qmail@web41112.mail.yahoo.com> References: <20030819015157.69981.qmail@web41112.mail.yahoo.com> Message-ID: <3F420B6E.7000502@cache-22.co.uk> shortestpath wrote: > is there a way to detect a held-down button, -while- > the mouse is moving? > thanks in advance, > -alex Paste the following into a new html document. // -------- Start ----------- // mouse test
// -------- End ----------- // so basically on mouse down, set a variable (here called isDown) to true. On mouse up, set it to false. When the mouse moves check this var and you can tell if the mouse is clicked while you are moving the mouse. hth -- R.Livsey Incutio Web Developer [ PHP | Perl | Java | C# ] www.cache-22.co.uk www.incutio.com From badlanners at hotmail.com Tue Aug 19 06:38:41 2003 From: badlanners at hotmail.com (bread_man) Date: Tue, 19 Aug 2003 07:38:41 -0400 Subject: [thelist] PHP Form Elements Message-ID: Hi folks, I am an ASP guy just learning PHP. Knowing basic programming logic and similar syntax from Actionscripting, it hasn't been too steep of a learning curve, and I am growing fond of the language. I am running into something a bit odd, however and could use some help. I have a form page that calls itself as the action. The form takes the user input and writes it to a file, to be emailed to an admin from another page at his convenience. Form works great on my windows IIS4 development server - got some nice validation going, and it does just what it should. I upload it to my client's 'nix hosting server and it doesn't work. First of all, they have error reporting turned off which sucks. However, the main problem is that the form doesn't seem to pick up ANY of the form fields when on the production server. /register.php?name=adam (action="register.php" method="post") print "Name value is " . $_POST['name']; ...will return "Name value is adam" on my development server, but will return "Name value is " on the production server. PHP tags are getting processed, just won't grab my form data on the production server. Weird. Perhaps its a syntax thing I don't know about, perhaps a configuration thing on the hosting. Any ideas as to why this is happening? Thanks for bearing with me as a PHP n00b. Thanks in advance! adam From tim at incutio.com Tue Aug 19 06:43:57 2003 From: tim at incutio.com (Tim Fountain) Date: Tue, 19 Aug 2003 12:43:57 +0100 Subject: [thelist] What is wrong with this site? In-Reply-To: References: Message-ID: <184140518.20030819124357@incutio.com> Monday, August 18, 2003, 11:55:06 PM, Jeff Howden wrote: > Simon Willison wrote:, >> Jeff Howden wrote: >>> again, as evidenced by the original request, the developer doesn't >>> always intend for their work to be sent as text/plain. ie is doing >>> its best to protect the user from this mistake. >> The reason, as I touched on before, is simple: a web browser is a >> development tool. > wrong. a web browser is a tool for navigating the web and viewing > documents available online, offline, etc. The problem is, it's both. It's a tool for navigation but it's also the tool developers use to test pages. Therefore by protecting users from mistakes you're also hiding them from developers, which in turn is bad for users. As an example, I was browsing a high profile e-commerce site a month or two ago, I think it was lastminute.com. Their server was sending pages back as text/plain, and in my browser of choice this made their site completely unusable. I don't know how long the site had been like this (it's fixed now), but it could have been a while. If all browsers displayed the content sent as text/plain as just that I'd care to bet the problem would have never been there, but if it was it would have been noticed very quickly. The reason we have standards in the first place is to try and tie all browsers together so they behave in roughly the same way. Unless there's a standard way for browsers to second guess mistakes, they shouldn't do so at all, as this leads to some users seeing problems and others not. These problems then become harder for developers to track down (if they know about them at all), which I say is worse for users overall. > developers only checking their work in one browser and assuming > it'll work for everyone is not the fault of the browser maker. However if all browsers were 100% standards compliant, as long as your page was standards compliant as well you could be pretty sure it would work the same in all browsers. It's impossible for developers to check sites on _all_ browsers, there are hundreds of them. [XHTML refusing to render invalid code] >> unless the next version of IE (ha! there's a joke) does proper XML >> parsing on pages served with an XML doctype (as Mozilla does at the >> moment) even that will be lost. > sorry, but i don't see the problem (from a non-developer's perspective). > if, as a developer, i make an innocent mistake, the user's shouldn't > have to suffer. the browser should be smart enough to work around > the mistake (providing it's not too big). But how? Fixing text/plain served content isn't a good example here, so say you've got a messy HTML page with lots of missing and other tags to the point where it's not obvious how it's meant to look. The browser may "guess", but one browser's guess isn't necessarily going to be the same as another browser's, which lead to a readable page in one and an unreadable page in another. As I said earlier, because you can't test in _every_ browser, this is A Bad Thing. -- Tim Fountain | Web developer | Incutio Limited | www.incutio.com email: tim at incutio.com | Tel: +44 8708 700 333 | Fax: +44 7092 181 581 From manuel at simplelogica.net Tue Aug 19 07:03:52 2003 From: manuel at simplelogica.net (M.G. Noriega) Date: 19 Aug 2003 14:03:52 +0200 Subject: [thelist] PHP Form Elements In-Reply-To: References: Message-ID: <1061294635.2920.13.camel@nofx> El mar, 19-08-2003 a las 13:38, bread_man escribi?: > Hi folks, > Hi Adam, Check your production server's php version. I'd dare to say that could be the cause of your troubles. HTTP POST variables: $_POST Note: Introduced in 4.1.0. In earlier versions, use $HTTP_POST_VARS. -- Manuel Gonz?lez Noriega Simplel?gica, construcci?n web @ http://simplelogica.net Logicola es el weblog de Simplel?gica http://simplelogica.net/logicola/ From angello at post.cz Tue Aug 19 06:53:54 2003 From: angello at post.cz (angello) Date: Tue, 19 Aug 2003 13:53:54 +0200 Subject: [thelist] PHP Form Elements In-Reply-To: References: Message-ID: <3F420FD2.3050909@post.cz> hi, i'm not sure if i got it right, but two things: 1. do you use same version of php?? you can do it by phpinfo() function. 2. you're mixing 'post' and 'get' methods everything in a url is accessible using $_GET[] arrays or in older versions you can directly access these variables (in your case $name == "adam") or try $$HTTP_GET_VARS and $$HTTP_POST_VARS - it depends on configuration of php. bye angello bread_man wrote: >Hi folks, > >I am an ASP guy just learning PHP. Knowing basic programming logic and similar syntax from Actionscripting, it hasn't been too steep of a learning curve, and I am growing fond of the language. I am running into something a bit odd, however and could use some help. > >I have a form page that calls itself as the action. The form takes the user input and writes it to a file, to be emailed to an admin from another page at his convenience. Form works great on my windows IIS4 development server - got some nice validation going, and it does just what it should. I upload it to my client's 'nix hosting server and it doesn't work. First of all, they have error reporting turned off which sucks. However, the main problem is that the form doesn't seem to pick up ANY of the form fields when on the production server. > >/register.php?name=adam (action="register.php" method="post") > >print "Name value is " . $_POST['name']; > >....will return "Name value is adam" on my development server, but will return "Name value is " on the production server. > >PHP tags are getting processed, just won't grab my form data on the production server. Weird. Perhaps its a syntax thing I don't know about, perhaps a configuration thing on the hosting. Any ideas as to why this is happening? Thanks for bearing with me as a PHP n00b. > >Thanks in advance! >adam > > From tim at incutio.com Tue Aug 19 06:54:41 2003 From: tim at incutio.com (Tim Fountain) Date: Tue, 19 Aug 2003 12:54:41 +0100 Subject: [thelist] PHP Form Elements In-Reply-To: References: Message-ID: <1151574064.20030819125441@incutio.com> Tuesday, August 19, 2003, 12:38:41 PM, bread_man wrote: > Form works great on my windows IIS4 development server.. I upload it > to my client's 'nix hosting server and it doesn't work. First of > all, they have error reporting turned off which sucks. You may be able to override their error reporting value by setting a PHP flag in a htaccess file. Otherwise you can set the error reporting value by way of the error_reporting() function (try error_reporting(E_ALL);). > However, the main problem is that the form doesn't seem to pick up > ANY of the form fields when on the production server. > /register.php?name=adam (action="register.php" method="post") > print "Name value is " . $_POST['name']; > ...will return "Name value is adam" on my development server, but > will return "Name value is " on the production server. Do you have a field called 'name' in your form? If not, the above shouldn't work on either. If the only way you're passing in the name value is via. the query string in the URL, you should be accessing it using $_GET['name']. The $_POST array is only for data submitted via. post from the actual form. -- Tim Fountain | Web developer | Incutio Limited | www.incutio.com email: tim at incutio.com | Tel: +44 8708 700 333 | Fax: +44 7092 181 581 From martin.burns at uk.ibm.com Tue Aug 19 06:53:12 2003 From: martin.burns at uk.ibm.com (Martin Paul Burns) Date: Tue, 19 Aug 2003 12:53:12 +0100 Subject: [thelist] UK JSP people - work available Message-ID: Hi All A UK-based project I'm working on has an urgent need for a couple of people with strong JSP & XML skills for about 20 days' total work. It's to build an interface between the client's backend system and their new eMarketing tools, using the eMarketing tools' APIs, which we'll be providing training in. We need people with JSP, Java & XML, but if they have ASP as well, that would be handy. What's essential is being available ASAP. The project is Oxford based, but travel/subsistance expenses shouldn't be a problem. If this is you (or you know someone who it might be), drop me an email off-list Cheers Martin From shortestpath at yahoo.com Tue Aug 19 06:58:18 2003 From: shortestpath at yahoo.com (shortestpath) Date: Tue, 19 Aug 2003 04:58:18 -0700 (PDT) Subject: [thelist] detect held-down mouse button In-Reply-To: <3F420B6E.7000502@cache-22.co.uk> Message-ID: <20030819115818.80261.qmail@web41115.mail.yahoo.com> Thanks to everyone who gave their suggestions. I was trying to avoid setting a global variable. For some reason I thought I could somehow get to a parent or ancestor event, kinda like how you can get to a parent or ancestor node. I was thinkng that a mouseup could not have occurred without a mousedown. So if there's a mousemove in between, then mousedown must be a parent of mousemove. I guess I'm realizing there's no such thing? --- RLivsey wrote: shortestpath wrote: > is there a way to detect a held-down button, -while- > the mouse is moving? > thanks in advance, > -alex Paste the following into a new html document. // -------- Start ----------- // mouse test
// -------- End ----------- // so basically on mouse down, set a variable (here called isDown) to true. On mouse up, set it to false. When the mouse moves check this var and you can tell if the mouse is clicked while you are moving the mouse. hth -- R.Livsey Incutio Web Developer [ PHP | Perl | Java | C# ] www.cache-22.co.uk www.incutio.com __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From Tab.Alleman at MetroGuide.com Tue Aug 19 08:20:26 2003 From: Tab.Alleman at MetroGuide.com (Tab Alleman) Date: Tue, 19 Aug 2003 09:20:26 -0400 Subject: [thelist] SQL Query Message-ID: rudy wrote: >>>> SELECT * from mytable WHERE myfield LIKE "%.%.%" >>>> AND NOT myfield LIKE "%.%.%.%" > > the problem with this -- although i have not tested it myself (don't > gots sql server here at home) -- is that A.B.C.D satisfies both the > LIKE condition and also the NOT LIKE condition > > see, the percents mean "anything" > > %.%. matches A.B. and then the last % matches C.D > > right? True, but isn't that the idea? A.B.C.D matches both conditions and therefore would not be selected. A.B.C only matches the first condition and therefore would be selected. From tim at incutio.com Tue Aug 19 08:50:41 2003 From: tim at incutio.com (Tim Fountain) Date: Tue, 19 Aug 2003 14:50:41 +0100 Subject: [thelist] What is wrong with this site? In-Reply-To: <3F415A54.3000400@bath.ac.uk> References: <004e01c365d9$d9688480$6000a8c0@webmarketingworx> <3F415A54.3000400@bath.ac.uk> Message-ID: <1579712969.20030819145041@incutio.com> Monday, August 18, 2003, 11:59:32 PM, Simon Willison wrote: > Bill Haenel wrote: >> Should we be using the same tool for developing our products that >> our users/customers do for actually enjoying the product? > What a fascinating question. I'd say not: while we should of course > /test/ in the browser used by our users, we would be better to > /develop/ in a tool that is better suited for development. Any development tool is going to be a browser of some kind, as browsable pages are the end result. I'd love to see a browser with little status bar icons that represent validity of pages as you browse, instead of us constantly having to validate things. Think of Javascript errors. In Internet Explorer, if there's a Javascript error on a page you get the little JS icon bottom left. Double-click on that and you get details of the error(s). Why can't we have something like this for HTML and CSS errors? The browser has to parse the content anyway... One for accessibility problems would be great too. I believe Opera may have something like this already but I'd love to see it in Firebird (and IE as well but that'll never happen). -- Tim Fountain | Web developer | Incutio Limited | www.incutio.com email: tim at incutio.com | Tel: +44 8708 700 333 | Fax: +44 7092 181 581 From info at gwcreative.com Tue Aug 19 09:23:09 2003 From: info at gwcreative.com (Gregory Wostrel) Date: Tue, 19 Aug 2003 10:23:09 -0400 Subject: [thelist] photo usage/consent question In-Reply-To: <000001c36618$51858920$e8c83018@mcbain> Message-ID: On Tuesday, August 19, 2003, at 02:08 AM, Bill McBain wondered in part: > He says that I am violating laws because I don't have a > release form for public consumption of these photos. > My question is: Is my personal website a public area? As a professional photographer this sort of issue in all its forms comes up regularly for me. Here, in my mind, are the basics: If you are using the images for financial gain, ie selling as stock, or placing them in a context where something will be implied about the person(s) depicted, ie selling them for an article on abuse of children at summer camps, then you have a problem. You would need a full release for anyone that is recognizable in the images. However, if you are using them personally, or in a manner where they would be considered "news worthy" (think a picture of a bunch of people doing something that appears in a newspaper - no problem since they were in public and the picture is a record that they were there, simple as that) you do not have a problem. About.com puts it fairly succinctly: ====================== When using pictures that contain clearly recognizable faces of people, a model release protects you against legal claims by the persons in the photo. In general, model releases are needed when using pictures of people for commercial purposes, such as in ads or brochures. Editorial use (news photos, for example) do not usually require model releases although in some cases it is common courtesy to obtain permission. ==================== Since the web can be considered a publishing media, and your personal site a publication, you have every right to do what you want with the images as long as it is not slanderous. Since they are also *your* pictures, you own the copyright to them and can largely dictate what is, or isn't, done with them. All this being said, you still have to live in the real world and telling everyone to lighten up and/or go pound sand may not be in your best interests. Even though you have the legal right to, politely, do just that. I agree with Mike, who wrote: > The main reason is supposably so kids cannot be traced by the dodgy. > In your > case I cannot see how anonymous pictures of kids is going to allow > anyone to > trace them back to their house as you no doubt do don include their > names or > addresses. > > In the old days (1980's) if we saw a picture of us on the tv or in the > paper > we were well chuffed. > > If parents are so stuffy that they wouldn?t want pictures of their kids > enjoying themselves on the net than that is sad. > The child safely debate is really flawed as it is proven that people > that > interfere with children are usually friends of the family anyway. and I *do* have children. HTH, Gregory Wostrel gwcreative http://www.gwcreative.com/ gw at gwcreative.com 401.286.9228 Communications and the Art of Simplicity From info at gwcreative.com Tue Aug 19 09:29:32 2003 From: info at gwcreative.com (Gregory Wostrel) Date: Tue, 19 Aug 2003 10:29:32 -0400 Subject: [thelist] photo usage/consent question In-Reply-To: Message-ID: <8C8FE9B9-D251-11D7-B3F7-0003938680C8@gwcreative.com> On Tuesday, August 19, 2003, at 06:35 AM, Andy Budd wrote: > If you took the pictures during work, it could be argued that they own > the copyright to those photos. If you took the photos in your free > time then you probably own copyright. This is also an excellent point. Here, your employer could maintain that since you took the pictures while in their employ (and on the clock) the photographs are a "work made for hire" and, in fact, they own the copyright and you have no claim to them at all. Since you are not a professional photographer and they (I assume) had no expectation that you would be taking these photographs it gets a little foggy. Gregory Wostrel gwcreative http://www.gwcreative.com/ gw at gwcreative.com 401.286.9228 Communications and the Art of Simplicity From bedouglas at earthlink.net Tue Aug 19 09:54:32 2003 From: bedouglas at earthlink.net (bruce) Date: Tue, 19 Aug 2003 07:54:32 -0700 Subject: [thelist] photo usage/consent question In-Reply-To: Message-ID: <010401c36661$cce64610$0301a8c0@Mesa.com> if this point was already made...please disregard.. as i understand it..you've taken some photos ..and some are of kids... and you did it on your on time... but you were at the location/camp of your employeer... forget the legal "rights" you may have to the photos... if the parents of one of the kids discovers that you've put a photo of their kid on the net..without their permission, they may come after the owner, either legally..or with an aluminum bat!!! he may just be trying to eliminate any issue/headache for himself!! good luck.. -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Gregory Wostrel Sent: Tuesday, August 19, 2003 7:23 AM To: thelist at lists.evolt.org Subject: Re: [thelist] photo usage/consent question On Tuesday, August 19, 2003, at 02:08 AM, Bill McBain wondered in part: > He says that I am violating laws because I don't have a > release form for public consumption of these photos. > My question is: Is my personal website a public area? As a professional photographer this sort of issue in all its forms comes up regularly for me. Here, in my mind, are the basics: If you are using the images for financial gain, ie selling as stock, or placing them in a context where something will be implied about the person(s) depicted, ie selling them for an article on abuse of children at summer camps, then you have a problem. You would need a full release for anyone that is recognizable in the images. However, if you are using them personally, or in a manner where they would be considered "news worthy" (think a picture of a bunch of people doing something that appears in a newspaper - no problem since they were in public and the picture is a record that they were there, simple as that) you do not have a problem. About.com puts it fairly succinctly: ====================== When using pictures that contain clearly recognizable faces of people, a model release protects you against legal claims by the persons in the photo. In general, model releases are needed when using pictures of people for commercial purposes, such as in ads or brochures. Editorial use (news photos, for example) do not usually require model releases although in some cases it is common courtesy to obtain permission. ==================== Since the web can be considered a publishing media, and your personal site a publication, you have every right to do what you want with the images as long as it is not slanderous. Since they are also *your* pictures, you own the copyright to them and can largely dictate what is, or isn't, done with them. All this being said, you still have to live in the real world and telling everyone to lighten up and/or go pound sand may not be in your best interests. Even though you have the legal right to, politely, do just that. I agree with Mike, who wrote: > The main reason is supposably so kids cannot be traced by the dodgy. > In your > case I cannot see how anonymous pictures of kids is going to allow > anyone to > trace them back to their house as you no doubt do don include their > names or > addresses. > > In the old days (1980's) if we saw a picture of us on the tv or in the > paper > we were well chuffed. > > If parents are so stuffy that they wouldn?t want pictures of their kids > enjoying themselves on the net than that is sad. > The child safely debate is really flawed as it is proven that people > that > interfere with children are usually friends of the family anyway. and I *do* have children. HTH, Gregory Wostrel gwcreative http://www.gwcreative.com/ gw at gwcreative.com 401.286.9228 Communications and the Art of Simplicity -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From nemesis at nemesis1.f2o.org Tue Aug 19 09:56:03 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Tue, 19 Aug 2003 10:56:03 -0400 Subject: [thelist] photo usage/consent question In-Reply-To: <000001c36618$51858920$e8c83018@mcbain> References: <000001c36618$51858920$e8c83018@mcbain> Message-ID: <3F423A83.2040802@nemesis1.f2o.org> Bill McBain wrote: > Hey all, > > > I work for a summer camp which is owned by a private organization. > Photography is nowhere in my contract. I am a counselor. I took > thousands of photos this summer, and put together a staff slideshow. I > then put this slideshow on my personal website. Some of the photos have > campers and staff members under 18 in them. I got a call from my (former > because my seasonal contract ended) boss tonight telling me to pull the > pictures. He says that I am violating laws because I don't have a > release form for public consumption of these photos. > My question is: Is my personal website a public area? I was a commercial photographer for 15 years. If this camp is in the U.S. you must have a release signed each person in the photos. If anyone is under 18 you must have a release signed by a parent of the child. You do not need a release to displaying the pictures in the privacy of your home. You would have a very hard time convincing a judge that your personnel web site is not in the public arena. Gary -- The Nemesis Project Noe Has Forums http://nemesis1.f2o.org One Stop CSS From badlanners at hotmail.com Tue Aug 19 10:08:04 2003 From: badlanners at hotmail.com (Adam Slesinger) Date: Tue, 19 Aug 2003 11:08:04 -0400 Subject: [thelist] Re: PHP Form Elements References: Message-ID: Hi Manuel, You hit the nail on the head. phpinfo() revealed my development server was Ver 4.3.2, and the production machine is Ver 4.0.6. I replaced all of the $_POST with $HTTP_POST_VARS and things are working on both machines. Many thanks to everyone who offered their help. Much appreciated! Danke, adam >Check your production server's php version. I'd dare to say that could >be the cause of your troubles. HTTP POST variables: $_POST Note: Introduced in 4.1.0. In earlier versions, use $HTTP_POST_VARS. From nemesis at nemesis1.f2o.org Tue Aug 19 10:21:21 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Tue, 19 Aug 2003 11:21:21 -0400 Subject: [thelist] photo usage/consent question In-Reply-To: References: Message-ID: <3F424071.9000107@nemesis1.f2o.org> Gregory Wostrel wrote: > On Tuesday, August 19, 2003, at 02:08 AM, Bill McBain wondered in part: > > However, if you are using them personally, or in a manner where they > would be considered "news worthy" (think a picture of a bunch of people > doing something that appears in a newspaper - no problem since they were > in public and the picture is a record that they were there, simple as > that) you do not have a problem. I don't think I would try to push that point in court, unless the web site is totally about news worthy events. The pictures were taken on private property, used for a private event, and owned by a private organization that he was employed by. Gary From JGreen at desmoinesmetro.com Tue Aug 19 10:19:55 2003 From: JGreen at desmoinesmetro.com (Janet Green) Date: Tue, 19 Aug 2003 10:19:55 -0500 Subject: [thelist] photo usage/consent question Message-ID: <7245DCF24646B944B6BE516574FA54FE0157FFC5@gdmp03.desmoinesmetro.com> >>>I got a call from my (former > because my seasonal contract ended) boss tonight telling me to pull the > pictures. He says that I am violating laws because I don't have a > release form for public consumption of these photos.<<< I'd say yes, your website is definitely a "public area", just as a newspaper would be public. However, it might be worth asking your boss if campers' parents signed a photo waiver upon enrolling their children in camp. In our public school system, parents have to sign a form stating that it's ok for their children to be photographed, and for the photos to be published, during school activities. This covers the local newspaper photographer (or TV news crew) who's covering the annual "Track and Field Day" at the school, or shooting photos at a local attraction where the kids happen to be going for a field trip, etc. Parents must specifically state that they do NOT want their child to be photographed if that is the case. If parents signed a photo waiver upon enrollment, perhaps you're already covered. Janet From JGreen at desmoinesmetro.com Tue Aug 19 10:54:53 2003 From: JGreen at desmoinesmetro.com (Janet Green) Date: Tue, 19 Aug 2003 10:54:53 -0500 Subject: [thelist] photo usage/consent question Message-ID: <7245DCF24646B944B6BE516574FA54FE0157FFC8@gdmp03.desmoinesmetro.com> >>>If parents signed a photo waiver upon enrollment, perhaps you're already covered. <<< Plus - I'm not sure how this is any different from a camper or counselor taking photos of their friends at camp and posting *those* on their personal websites - is your boss also tracking *those* occurances and is he asking *them* to take down their photos? Janet Green, Internet Manager The Greater Des Moines Partnership www.desmoinesmetro.com 286-4972 Subscribe to New View Online ! From barry at springcottage.ndirect.co.uk Tue Aug 19 11:37:30 2003 From: barry at springcottage.ndirect.co.uk (barry sweeney) Date: Tue, 19 Aug 2003 17:37:30 +0100 Subject: [thelist] MS SQL Server - T-SQL Message-ID: Hello all, I have a disussion forum, the database of which I've just converted to MS SQL Server from MS Access, and put on a different server to the web server. In the database there is a topic table for all the topics, and a reply table for all the replies (well, duh!). In the topics table There is a "Number of Replies" column and I want to ensure that the figure in that field actually agrees with the number of replies that have been posted for that topic. The code that I used to use for validating this for the Access database was in the vbscript active server page, but it seems to me that it would be much more efficient to do it in a sproc in the SQL Server database, particularly as the database is on a different machine. The vbscript snippet is as follows: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> oConn.Open ConnString strSQL = "Select Topic_ID, T_Replies From tblTopics" rs.Open strSQL, oConn, 2, 2 i = 0 do until rs.EOF i = i + 1 strSQL = "Select count(Reply_ID) AS cnt from tblReply where topic_ID = " & rs("Topic_ID") rs1.Open StrSQL, my_Conn if rs1.EOF or rs1.BOF then rs("T_Replies") = 0 rs.Update Else rs("T_Replies") = rs1("cnt") rs.Update End if rs1.Close rs.MoveNext loop rs.Close <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< I suspect that I will have to use the WHILE statement to achieve this, but can't get my head around reading the original dataset and then looping through querying the database using the Topic_ID in order to get the count of the number of replies. Can somebody give me a clue where to start with the T-SQL? Many thanks, Barry From joshua at waetech.com Tue Aug 19 11:48:36 2003 From: joshua at waetech.com (Joshua Olson) Date: Tue, 19 Aug 2003 12:48:36 -0400 Subject: [thelist] MS SQL Server - T-SQL References: Message-ID: <011601c36671$bbcdf340$0300a8c0@client1> ----- Original Message ----- From: "barry sweeney" Sent: Tuesday, August 19, 2003 12:37 PM > In the database there is a topic table for all the topics, and a reply table > for all the replies (well, duh!). In the topics table There is a "Number of > Replies" column and I want to ensure that the figure in that field actually > agrees with the number of replies that have been posted for that topic. Barry, You may want to consider *not* taking this approach. With SQL Server (as with Access) you could just as easily calculate this "number of replies" column within the select. Example: SELECT whatever1, whatever2, (SELECT Count(*) FROM tblReply WHERE tblReply.topic_ID = tblTopics.Topic_ID) AS T_Replies FROM tblTopics This way there's no chance of the information becoming out of synch. You could also create a view with the above query and then use the view in the script instead of accessing the table directly. HTH, <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168 From Tab.Alleman at MetroGuide.com Tue Aug 19 12:31:16 2003 From: Tab.Alleman at MetroGuide.com (Tab Alleman) Date: Tue, 19 Aug 2003 13:31:16 -0400 Subject: [thelist] MS SQL Server - T-SQL Message-ID: Joshua Olson wrote: > You may want to consider *not* taking this approach. +1 > With SQL Server > (as with Access) you could just as easily calculate this "number of > replies" column within the select. Example: OR if you really want to have a column that can be seen in EM, you could create a calculated column. > This way there's no chance of the information becoming out of synch. Yeah. From carl.myhill at ps.ge.com Tue Aug 19 13:17:04 2003 From: carl.myhill at ps.ge.com (carl.myhill at ps.ge.com) Date: Tue, 19 Aug 2003 14:17:04 -0400 Subject: [thelist] Unreliable borders Message-ID: <6192367D59F8904CA553579EF41FEEA001932D34@ukcbgx01psge.geips.ge.com> Having just got my site through the rigours of xhtml, css, bobby and bobby 508 validation/certification it was with some dismay that I discovered even more problems with something as simple as borders. Just in debugging I added a few borders around my DIVs. With Safari the presence of the border made the DIV sit in the right place, but removing the border caused the whole DIV to slip by 20 pixels or so. After I had worked around that with some messing around, basically by giving the DIV which wanted a border in order to stay in place, a bottom border. Previously the DIV below had a top border so I removed it for Safari's sake and relied on the bottom border of the above DIV. That all worked ok. The I checked IE Win 5.5 and 6 - no bottom border displayed at all (there should be a line above and below the breadcrumbs)! If I give it a bottom and a right border it displays but the bottom border on its own will not display. That's a lot of waffle - just really wanted to ask whether there is any comprehensive explanation of cross-browser problems with Borders anywhere? If you want a peak it's here http://www.impingtonswimmingclub.org.uk/index_css9.html Style sheet is here http://www.impingtonswimmingclub.org.uk/isc.css I think what I really want is a bomb proof, browser proof, valid xhtml, template for putting a simple logo and heading at the top of the page with a bit of breadcrumb navigation under there and a search box. Doesn't sound such a wild goal, but has proved hard and there seem lots of ways to skin the cat. Some use floats, some absolute, some z-order. I've got Chris Schmitt's book but lots of good ideas in there are not cross browser robust. What's the best book for cross browser safe styling? NYPL guidelines? Meyer? Costello et al? Any advice welcome. Carl From rob.smith at THERMON.com Tue Aug 19 13:43:18 2003 From: rob.smith at THERMON.com (Rob Smith) Date: Tue, 19 Aug 2003 13:43:18 -0500 Subject: [thelist] Broadening my Horizons - JSP Message-ID: <0CEC8258A6E4D611BE5400306E1CC9271E4E70@smtmb.tmc.local> Hi list, I trying to hit, or at least familiarize myself with the various more common languages/approaches to web development. At this point in time, my journey has led me to JSP. I've found various books about it at the local book stores but nothing impressive, only headaches. What are some good books? websites? applications? uses? future? thoughts? on/of Java Server Pages? Rob Smith Web Development Manager Thermon Manufacturing Company 100 Thermon Dr. San Marcos, TX 78667-0609 (512) 396-5801 Rob.Smith at thermon.com From lists at frankmarion.com Tue Aug 19 14:14:13 2003 From: lists at frankmarion.com (Frank) Date: Tue, 19 Aug 2003 15:14:13 -0400 Subject: [thelist] OT: 27 Trojans in the in-box today Message-ID: <5.2.1.1.0.20030819150509.00aef588@mail.frankmarion.com> Holy Smokes! I received 27 trojans in my in box at an address that I never give out, and that never receives spam. Most had a From: of ferris.edu with the title "Thank You" (and variations thereof). Lucky for me, I'm security minded with all of my defence settings at "Paranoid". Has anyone else gotten hammered? For PC users who haven't yet tried using Bayesian filtering for their spam, I would recommend K9. http://keir.net/k9.html Not only does it do an excellent job of trapping spam, but as a side bonus, it also seems to treat virus infected emails as spam. It's a extra (albeit a soft) extra line of defence. -- Frank Marion lists at frankmarion.com Keep the signal high. From dmitchell at oproma.com Tue Aug 19 14:20:39 2003 From: dmitchell at oproma.com (David Mitchell) Date: Tue, 19 Aug 2003 15:20:39 -0400 Subject: [thelist] Broadening my Horizons - JSP In-Reply-To: <0CEC8258A6E4D611BE5400306E1CC9271E4E70@smtmb.tmc.local> Message-ID: <000401c36686$fa1c10e0$6501a8c0@opr> Hi Rob, I happen to be a big fan of JSP. The learning curve can be quite fierce, especially if you do not have any previous Java or OOP experience, but it's not insurmountable. One of the coolest things about building web apps with JSP is that you are actually using a compiled language instead of the script running through an interpreter each request as is with ASP or PHP. You can also take advantage of multi-threaded apps as well. One of the best resources I have found for JSPs and Servlets is http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ Best of luck, Dave -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Rob Smith Sent: Tuesday, August 19, 2003 2:43 PM To: Thelist (E-mail) Subject: [thelist] Broadening my Horizons - JSP Hi list, I trying to hit, or at least familiarize myself with the various more common languages/approaches to web development. At this point in time, my journey has led me to JSP. I've found various books about it at the local book stores but nothing impressive, only headaches. What are some good books? websites? applications? uses? future? thoughts? on/of Java Server Pages? Rob Smith Web Development Manager Thermon Manufacturing Company 100 Thermon Dr. San Marcos, TX 78667-0609 (512) 396-5801 Rob.Smith at thermon.com -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From jeff at jeffhowden.com Tue Aug 19 14:23:50 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Tue, 19 Aug 2003 12:23:50 -0700 Subject: [thelist] What is wrong with this site? In-Reply-To: <1061293276.30637@LISTSERV.alphashop.com> Message-ID: <1061320773.13840@LISTSERV.alphashop.com> tim, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: Tim Fountain > > > Jeff Howden wrote: > > > > wrong. a web browser is a tool for navigating the web > > and viewing documents available online, offline, etc. > > The problem is, it's both. It's a tool for navigation > but it's also the tool developers use to test pages. > Therefore by protecting users from mistakes you're also > hiding them from developers, which in turn is bad for > users. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< you're assuming the browser was built originally as both a viewing tool and a debugging tool. that assumption is incorrect. it's first a viewer and by virtue of being the only suitable tool for the job, also the debugger. i'll agree that hiding mistakes from the developer is bad. but i'll disagree that hiding them from the user is bad. on some things there are toggles to make it easier for developers to move around, isolate and identify problems, etc. you won't find all the necessary tools available within the browser though as debugging/development is not its primary function. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > As an example, I was browsing a high profile e-commerce > site a month or two ago, I think it was lastminute.com. > Their server was sending pages back as text/plain, and > in my browser of choice this made their site completely > unusable. I don't know how long the site had been like > this (it's fixed now), but it could have been a while. > If all browsers displayed the content sent as > text/plain as just that I'd care to bet the problem > would have never been there, but if it was it would > have been noticed very quickly. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< agreed, but it could also be argued that the 95% of the audience to the site would not have been able to find what they were looking for because of something really simple being set incorrectly. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > The reason we have standards in the first place is to > try and tie all browsers together so they behave in > roughly the same way. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< *yawn* standards is not what this conversation is about. please don't cloud it with that. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > However if all browsers were 100% standards compliant, > as long as your page was standards compliant as well you > could be pretty sure it would work the same in all > browsers. It's impossible for developers to check sites > on _all_ browsers, there are hundreds of them. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< *yawn* more standards nonsense. you contradict yourself in the passage above. furthermore, the reality is that not all browsers are 100% standards compliant. in fact, there isn't a single browser on the market that's 100% standards compliant; not one. even the ones that are close have added their own proprietary garbage to html, css, etc. making the reality of 100% standards compliance getting the job done a serious joke. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > if, as a developer, i make an innocent mistake, the > > user's shouldn't have to suffer. the browser should > > be smart enough to work around the mistake (providing > > it's not too big). > > But how? Fixing text/plain served content isn't a good > example here, so say you've got a messy HTML page with > lots of missing and other tags to the point > where it's not obvious how it's meant to look. The > browser may "guess", but one browser's guess isn't > necessarily going to be the same as another browser's, > which lead to a readable page in one and an unreadable > page in another. As I said earlier, because you can't > test in _every_ browser, this is A Bad Thing. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< validating your code would solve that problem immediately. a browser displaying a blank page because a closing table tag is missing is exceedingly unhelpful to a user. let the browser fail gracefully for the developer that's either html-illiterate or too lazy to run the code through a validator, but don't punish the user. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From jjk3 at msstate.edu Tue Aug 19 14:25:04 2003 From: jjk3 at msstate.edu (Joel Konkle-Parker) Date: Tue, 19 Aug 2003 14:25:04 -0500 (CDT) Subject: [thelist] PHP book for the wealth-challenged Message-ID: <1061321104.3f4279900ac6d@webmail.msstate.edu> I'm a hobbyist web developer and poor college student trying to develop a database-driven website with MySQL and PHP. As such, I'm looking for recommendations for a book that will teach me the basics (and not-so-basics). I've seen the Wrox books (Beginning PHP, Professional PHP) and the O'Reilly book (Programming PHP), but I can't decide which one to spend my hard-earned cash on. Has anyone out there used both? Which was better? Or anyone had a good experience with one or the other? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] From rob.smith at THERMON.com Tue Aug 19 14:31:42 2003 From: rob.smith at THERMON.com (Rob Smith) Date: Tue, 19 Aug 2003 14:31:42 -0500 Subject: [thelist] OT: 27 Trojans in the in-box today Message-ID: <0CEC8258A6E4D611BE5400306E1CC9271E4E76@smtmb.tmc.local> Holy Smokes! I received 27 trojans in my in box at an address that I never give out, and that never receives spam. Most had a From: of ferris.edu with the title "Thank You" (and variations thereof). Lucky for me, I'm security minded with all of my defence settings at "Paranoid". Has anyone else gotten hammered? //////////////////////////////////////////////////////////////////////////// ///////////////// This was from my IT Staff this morning: I would definitely say that somebody has the newest virus (W32.Sobig.F at mm). Look at the details on the e-mail routine...it matches those exactly. Email Routine Details The email message has the following characteristics: From: Spoofed address (which means that the sender in the "From" field is most likely not the real sender). The worm may use the address admin at internet.com as the sender. Subject: Re: Details Re: Approved Re: Re: My details Re: Thank you! Re: That movie Re: Wicked screensaver Re: Your application Thank you! Your details From barry at springcottage.ndirect.co.uk Tue Aug 19 14:35:01 2003 From: barry at springcottage.ndirect.co.uk (barry sweeney) Date: Tue, 19 Aug 2003 20:35:01 +0100 Subject: [thelist] MS SQL Server - T-SQL In-Reply-To: Message-ID: Wow! Thanks Joshua and Tab, I've so much to learn! One question, I understand how this approach will ensure that there is never a synchronisation issue, but from an efficiency point of view, isn't it better to update one field once rather than 'recalculate' it everytime it's displayed? Barry From hershelr at netvision.net.il Tue Aug 19 14:37:01 2003 From: hershelr at netvision.net.il (Hershel Robinson) Date: Tue, 19 Aug 2003 15:37:01 -0400 Subject: [thelist] OT: 27 Trojans in the in-box today In-Reply-To: <5.2.1.1.0.20030819150509.00aef588@mail.frankmarion.com> Message-ID: <00db01c36689$6e16b340$0200000a@hershel> > Has anyone else gotten hammered? Yes. I have not made the effort to examine the nature of the viruses nor senders, but beginning yesterday and increasing to a flurry today, I have been treated to well over 20. > For PC users who haven't yet tried using Bayesian filtering > for their spam, > I would recommend K9. I personally recommend getting a Yahoo.com address and using that for potentially-spam-generating purposes. My Yahoo.com address gets on the order of 100 spam emails a day and I never see them--they go into my Spam folder automatically. I get a few a day that go into the Inbox. Hershel From vidar at coretrek.no Tue Aug 19 14:43:43 2003 From: vidar at coretrek.no (Vidar Braut Haarr) Date: Tue, 19 Aug 2003 21:43:43 +0200 Subject: [thelist] Could you take a look at my site ? Message-ID: <3F427DEF.7020005@coretrek.no> Greetings ! I've just redesigned one of my sites, and I wondered if you could take a look at it. If you dislike the interactive design, I don't care. If you like it, however, you are welcome to complement me :) Also, I don't really care if it works in IE<6 or not. If it's visible and readable in IE 6, that's good enough for me. However, I would appreciate some testing in Opera 7, Konqueror and Safari. What I'm really fishing for here, is tips and tricks and comments directed towards the code-design. XHTML-, CSS- and JavaScript-wise. I'm not sure if the site validates as XHTML1.1 Strict yet, but I'll fix that later. The JS was copied from one of the contestants in a W3C redesign contest a while ago. Oh, and none of the links work :) This is just a test-design. Q1N.org Redesign: -- Vidar Braut Haarr CoreTrek A/S "Programmers don't die, they just GOSUB without RETURN." From john at johnallsopp.co.uk Tue Aug 19 14:04:49 2003 From: john at johnallsopp.co.uk (john at johnallsopp.co.uk) Date: Tue, 19 Aug 2003 15:04:49 -0400 (EDT) Subject: [thelist] Broadening my Horizons - JSP In-Reply-To: <000401c36686$fa1c10e0$6501a8c0@opr> References: <0CEC8258A6E4D611BE5400306E1CC9271E4E70@smtmb.tmc.local> <000401c36686$fa1c10e0$6501a8c0@opr> Message-ID: <43214.195.92.168.164.1061319889.squirrel@www.johnallsopp.co.uk> > What are some good books? websites? applications? uses? future? > thoughts? > on/of Java Server Pages? I reckon you need to learn Java, then look at Servlets, then JSP. Barry Cornelius' Java book was used for my degree course, then one of the Deitel and Deitels. I'm currently working through JSP 2.0 The Complete Reference (Osborne) but it's not clicked yet. Once you've cracked all that, you can move on to J2EE (an alternative to ..NET). As a guide, we had three (Java) programming modules in our course, a total of (at a guess) 50 points, which means 500 hours of study, to cover Java and a bit of servlets (there's not a lot to know once you know Java). We never did cover JSP. Of course, probably the first third of that was covering the basics of programming and object orientation, so if you're already a programmer then you can knock a bit off. I hope that's not too daunting, I just thought it would help me if I knew what I was letting myself in for so I could plan it. I mean, 10 hours a week for a year should crack it, that kinda thing. Cheers J From gaelwolf at waypt.com Tue Aug 19 14:55:32 2003 From: gaelwolf at waypt.com (Norman MacLeod) Date: Tue, 19 Aug 2003 12:55:32 -0700 Subject: [thelist] OT: 27 Trojans in the in-box today In-Reply-To: <5.2.1.1.0.20030819150509.00aef588@mail.frankmarion.com> Message-ID: <200308191956.h7JJtomw019512@svs23.virtualis.com> You were receiving the Sobig.F worm (Symantec's name for it), which started hammering away this morning. One of my clients was sending hundreds of copies a minute to one of their own discussion groups when we were asked to intervene and help them figure out what was going on. Norman ====================================== -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Frank Sent: Tuesday, August 19, 2003 12:14 PM To: thelist at lists.evolt.org Holy Smokes! I received 27 trojans in my in box at an address that I never give out, and that never receives spam. Most had a From: of ferris.edu with the title "Thank You" (and variations thereof). Lucky for me, I'm security minded with all of my defence settings at "Paranoid". Has anyone else gotten hammered? For PC users who haven't yet tried using Bayesian filtering for their spam, I would recommend K9. http://keir.net/k9.html Not only does it do an excellent job of trapping spam, but as a side bonus, it also seems to treat virus infected emails as spam. It's a extra (albeit a soft) extra line of defence. -- Frank Marion lists at frankmarion.com Keep the signal high. -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From john at johnallsopp.co.uk Tue Aug 19 14:12:19 2003 From: john at johnallsopp.co.uk (john at johnallsopp.co.uk) Date: Tue, 19 Aug 2003 15:12:19 -0400 (EDT) Subject: [thelist] PHP book for the wealth-challenged In-Reply-To: <1061321104.3f4279900ac6d@webmail.msstate.edu> References: <1061321104.3f4279900ac6d@webmail.msstate.edu> Message-ID: <45074.195.92.168.164.1061320339.squirrel@www.johnallsopp.co.uk> > I've seen the Wrox books (Beginning PHP, Professional > PHP) and the O'Reilly book (Programming PHP), but I can't decide which > one to spend my hard-earned cash on. I used the Wrox book PHP4 by Argerich (?) et al, and found the basics of the language great. But recently I tried to learn about cookies and sessions from it and it threw me completely, it seemed to race off into designing a system for a site with huge traffic without really covering the basics. I often hear that Wrox books are patchy (different chapters written by different people), and this seems to have happened to me here. FWIW J From bill at stimilon.org Tue Aug 19 14:59:55 2003 From: bill at stimilon.org (Bill McBain) Date: Tue, 19 Aug 2003 15:59:55 -0400 Subject: [thelist] photo usage/consent question In-Reply-To: <7245DCF24646B944B6BE516574FA54FE0157FFC8@gdmp03.desmoinesmetro.com> Message-ID: <001801c3668c$76c32160$e8c83018@mcbain> <<< THIS IS THE SITUATION! Plus - I'm not sure how this is any different from a camper or counselor taking photos of their friends at camp and posting *those* on their personal websites - is your boss also tracking *those* occurances and is he asking *them* to take down their photos? <<< I took these photos for myself, and now I posted them on my site. The waiver the kid's parents signed doesn't cover me, just the camp. I am just posting these pictures as a way to remember the good memories from camp for me, and some of my fellow staff. I am in US for those who wondered. For now I just put a .htaccess on the dir. -Bill From rob.smith at THERMON.com Tue Aug 19 15:02:57 2003 From: rob.smith at THERMON.com (Rob Smith) Date: Tue, 19 Aug 2003 15:02:57 -0500 Subject: [thelist] PHP book for the wealth-challenged Message-ID: <0CEC8258A6E4D611BE5400306E1CC9271E4E77@smtmb.tmc.local> Welp, there's always php.net. I went out and found a PHP and MySQL for dummies book at 50% off at my local Hastings book store (around $10 bucks) HTH, Rob.Smith From norman.bunn at craftedsolutions.com Tue Aug 19 15:07:26 2003 From: norman.bunn at craftedsolutions.com (Norman Bunn) Date: Tue, 19 Aug 2003 16:07:26 -0400 Subject: [thelist] PHP book for the wealth-challenged In-Reply-To: <1061321104.3f4279900ac6d@webmail.msstate.edu> Message-ID: <5.2.1.1.0.20030819160456.03f275b8@craftedsolutions.com> At 03:25 PM 8/19/2003, Joel Konkle-Parker wrote: >I'm a hobbyist web developer and poor college student trying to develop a >database-driven website with MySQL and PHP. As such, I'm looking for >recommendations for a book that will teach me the basics (and not-so-basics). >I've seen the Wrox books (Beginning PHP, Professional PHP) and the O'Reilly >book (Programming PHP), but I can't decide which one to spend my hard-earned >cash on. > >Has anyone out there used both? Which was better? Or anyone had a good >experience with one or the other? > >-- >Joel Konkle-Parker >Webmaster [Ballsome.com] PHP and MySQL Web Development - Welling/Thomson, 2nd Ed. Unlike many of the reference books, this is a step-by-step guide to building an e-commerce site from the ground up. Norman Bunn www.CraftedSolutions.com 803-405-1008 From Anthony at Baratta.com Tue Aug 19 15:06:27 2003 From: Anthony at Baratta.com (Anthony Baratta) Date: Tue, 19 Aug 2003 13:06:27 -0700 Subject: [thelist] OT: 27 Trojans in the in-box today In-Reply-To: <5.2.1.1.0.20030819150509.00aef588@mail.frankmarion.com> Message-ID: <5.1.0.14.2.20030819130111.03580c50@baratta.com> At 12:14 PM 8/19/2003, Frank wrote: >Has anyone else gotten hammered? I manage quite a few mail servers and we are FLOODED with this crap today. It's the highest levels I've ever seen. Normally I see one server or two take a pounding, but this is spread over all my servers. Most of the boxes I manage have viri or content filtering so we are blocking most of it. But the bounce and double bounce notices from the forged headers are cluttering up everyone's mail boxes. Sheesh. -- Anthony Baratta President Keyboard Jockeys "Conformity is the refuge of the unimaginative." From pmeeks at msn.com Tue Aug 19 15:28:21 2003 From: pmeeks at msn.com (Pat Meeks) Date: Tue, 19 Aug 2003 13:28:21 -0700 Subject: [thelist] OT: 27 Trojans in the in-box today References: <5.2.1.1.0.20030819150509.00aef588@mail.frankmarion.com> Message-ID: <003801c36690$6f439650$0201a8c0@dellp4> Frank: > Holy Smokes! I received 27 trojans in my in box at an address that I never > give out, and that never receives spam. Most had a From: of ferris.edu > with the title "Thank You" (and variations thereof). Lucky for me, I'm > security minded with all of my defence settings at "Paranoid". Yep...me too. First time this has happened. In my case, all the emails were sent to the webmaster email address I use on a website I manage, so it looks to me like they've been scanning web sites for emails. One thing I've done to minimize the problem, is that I've switched to NMSFormMail from SourceForge.Net that allows aliases in the forms, so at least they can't snag email address from the forms. I think any form handler that allows aliases has become a basic necessity to minimize the problem. Regards, Pat From rwd at csi1st.net Tue Aug 19 15:33:57 2003 From: rwd at csi1st.net (Ron Dorman) Date: Tue, 19 Aug 2003 15:33:57 -0500 Subject: [thelist] Work Avaialble - php sending email Message-ID: <3F4289B5.50404@csi1st.net> Hi Everyone, We have a project nearing completion and need assistance with emails generated in php. We have a mail class and script functioning. They need to be enhanced/tweaked into perfection or replaced with something that works better. We need someone with experience in php generated, text/html emails. Will need multipart/alternative (as we currently understand things) functionality as we need to include an image for background on the email. Will need readability across popular email clients (text and/or html capable), AOL, OE, Netscape, Mozilla, Eudora, Pine, etc. Script access will be limited to registered site members and restricted to prevent spamming. Contact me offlist with brief of experience, contact phone number and hourly rate. Thanks, Ron D. -- Ron Dorman CSI, Inc. 7340 Holiday Lane Fort Worth, TX 76180 817-503-7704 817-503-7719 fax http://www.csi1st.net mailto:rwd at csi1st.net From Tab.Alleman at MetroGuide.com Tue Aug 19 15:50:23 2003 From: Tab.Alleman at MetroGuide.com (Tab Alleman) Date: Tue, 19 Aug 2003 16:50:23 -0400 Subject: [thelist] MS SQL Server - T-SQL Message-ID: barry sweeney wrote: > One question, I understand how this approach will ensure that there > is never a synchronisation issue, but from an efficiency point of > view, isn't it better to update one field once rather than > 'recalculate' it everytime it's displayed? Seems to me that that could be a pretty give/take-ish issue: Say that you have a static column in your topics table that stores the NumberOfReplies. And everytime the reply table is INSERTed or UPDATEed, you fire a trigger that figures out which row to update in the Topics table, and updates the NumberOfReplies column for that table. Doing this has a relatively sizeable overhead, but you only do it when the replies table is changed, and not everytime you query the topics table. Doing the calculation each time you query the topics table will have a much smaller overhead, but, well, you'll be doing it everytime you query the topics table (excuse the redundant sentence structure, please...it's getting late). Soooo, if you query the topics table A LOT more often than you INSERT or UPDATE the replies table, it might be more efficient to use the trigger method. It would have to be a lot though, because SQL Server is pretty well optimized to do exactly this sort of calculation when you query it. The overhead is really very small. Sorry I don't have any benchmark figures to share, but they're probably Out There Somewhere. HTH, Tab From casey at thecrookstons.com Tue Aug 19 15:49:09 2003 From: casey at thecrookstons.com (Casey Crookston) Date: Tue, 19 Aug 2003 15:49:09 -0500 Subject: [thelist] CSS: best way to format for TD's and A's References: <1061320773.13840@LISTSERV.alphashop.com> Message-ID: <005001c36693$57827920$6401a8c0@papabear> What is the most effective way to format css code and html for a class to be effective with in and tags. Example: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Goal: regular text is white, 11px Arial, no underline, 5 point padding on the left. Link text is same but blue. Hovered is underlined. .tab { font-family : Arial, Helvetica, sans-serif; font-size : 11px; color : white; text-decoration : none; padding: 0px 0px 0px 5px; } a.tab { color : #0000ff; } a.tab:hover { text-decoration : underline; } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
text 1 text 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Now, given the above css and HTML, what is the most efficent way to format both to accomplish the goal? Thanks in advance. From john at neoncowboy.com Tue Aug 19 15:54:14 2003 From: john at neoncowboy.com (John Corry) Date: Tue, 19 Aug 2003 10:54:14 -1000 Subject: [thelist] Broadening my Horizons - JSP In-Reply-To: <43214.195.92.168.164.1061319889.squirrel@www.johnallsopp.co.uk> Message-ID: <002601c36694$1f364870$6501a8c0@neonreactor> > > What are some good books? websites? applications? uses? future? > > thoughts? on/of Java Server Pages? > > I reckon you need to learn Java If you are interested in learning Java (and if you're into programming...you should be), Bruce Eckel's 'Thinking In Java' is a wonderful book. John Corry From sam at sam-i-am.com Tue Aug 19 16:05:12 2003 From: sam at sam-i-am.com (Sam) Date: Tue, 19 Aug 2003 16:05:12 -0500 Subject: [thelist] OT: 27 Trojans in the in-box today In-Reply-To: <00db01c36689$6e16b340$0200000a@hershel> References: <00db01c36689$6e16b340$0200000a@hershel> Message-ID: <3F429108.1050705@sam-i-am.com> lucky you, I just flushed my deleted items again and got rid of another 100+, for the 4th time today. And most spam I get is filtered straight to be permanently deleted so it doesn't even show up as deleted. This is to my work account so I can't change my client (Outlook) or my address. I'm starting to keep a tally of how long I'm spending managing spam/viruses cause I feel like its slowly eating into my day. I will try that bayesian filter app though, maybe that will help. Sam Hershel Robinson wrote: >>Has anyone else gotten hammered? > > > Yes. I have not made the effort to examine the nature of the viruses nor > senders, but beginning yesterday and increasing to a flurry today, I have > been treated to well over 20. > From fffrancis at fstorr.demon.co.uk Tue Aug 19 16:21:11 2003 From: fffrancis at fstorr.demon.co.uk (fstorr) Date: Tue, 19 Aug 2003 22:21:11 +0100 Subject: [thelist] PHP book for the wealth-challenged In-Reply-To: <1061321104.3f4279900ac6d@webmail.msstate.edu> References: <1061321104.3f4279900ac6d@webmail.msstate.edu> Message-ID: <3F4294C7.8080800@fstorr.demon.co.uk> > Has anyone out there used both? Which was better? Or anyone had a good > experience with one or the other? ++++++ I like this one: http://tinyurl.com/kj88 Covers PHP4 + MySQL and comes with cdrom. Regards F From seyon at delime.com Tue Aug 19 16:27:00 2003 From: seyon at delime.com (Marc Seyon) Date: Tue, 19 Aug 2003 17:27:00 -0400 Subject: [thelist] PHP book for the wealth-challenged In-Reply-To: <1061321104.3f4279900ac6d@webmail.msstate.edu> Message-ID: <4.2.0.58.20030819171859.02202850@mail.delime.com> Message from Joel Konkle-Parker (8/19/2003 02:25 PM) >I'm a hobbyist web developer and poor college student trying to develop a >database-driven website with MySQL and PHP. Hi Joel, I know you asked for a book, but it's quite hard to beat the web as a wealth-challenged man's resource. With a background in ASP I've managed to make considerable headway into PHP/MySQL simply by using various online resources. I start at the source - http://www.php.net/manual/ (there's a downloadable version too, I think) When I need more detail I just use google to search for the specific function I'm using. I've also had good results using this programmer's reference - http://merd.net/pixel/language-study/syntax-across-languages/ for those "I know how to do this in ASP, how do I do it in PHP" situations. regards. -marc -- Carnival 2003 in all its photographic glory. Playyuhself.com http://www.playyuhself.com/ From seyon at delime.com Tue Aug 19 16:37:54 2003 From: seyon at delime.com (Marc Seyon) Date: Tue, 19 Aug 2003 17:37:54 -0400 Subject: [thelist] photo usage/consent question In-Reply-To: <000001c36618$51858920$e8c83018@mcbain> Message-ID: <4.2.0.58.20030819173136.0224a6c0@mail.delime.com> Message from Bill McBain (8/19/2003 02:08 AM) > >PS. I plan to work here next summer too, and I like my bosses, and so I >have complied for now, but I just want to know whether legally he or I >am right. Hey Bill, The legalities of this, as Gregory said, can get very hazy regarding who owns what and what they are and aren't allowed to do with it. That's not the angle I would look at it from though. I'd ask myself two questions. 1. Is it really going to hurt or inconvenience me to store these photos in a private location? 2. Is the good relation with the camp worth sacrificing to keep the photos public? Additionally. I'm sure as a camp counsellor you weren't taking voyeuristic photos of people you don't know. The photos would be of people you know and interacted with. Ask *them* (or their parents if they're underage) if they mind you having these photos online. Or some of the photos anyway. regards. -marc PS Gregory, the 6th and 9th photos on your site are really great! -- Carnival 2003 in all its photographic glory. Playyuhself.com http://www.playyuhself.com/ From ldelahunty at britstream.com Tue Aug 19 16:34:40 2003 From: ldelahunty at britstream.com (Liam Delahunty) Date: Tue, 19 Aug 2003 22:34:40 +0100 Subject: [thelist] Mac IE float: left problem Message-ID: I had a problem with floats not working through my own stupidity (I used the class name "float"), and have discovered from a client that IE 5 Mac doesn't float the layers but places them in a list, the width of the container. >From http://www.w3.org/TR/CSS2/visuren.html#floats I see that "A floated box must have an explicit width", which is a shame as I wanted to use the code in a dynamic manner. In any case, I have posted my tests/results here: http://www.liamdelahunty.com/tips/css_class_float.php http://www.liamdelahunty.com/tips/css_class_float_min_width.php http://www.liamdelahunty.com/tips/css_class_float_width.php All work in windows IE 5.5 and Opera 7.01, so could some kind soul please have a look and let me know if any of the display works in IE Mac 5? (Any others too.) Kind regards, Liam From ralph at nqionline.com Tue Aug 19 16:42:03 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Tue, 19 Aug 2003 14:42:03 -0700 Subject: [thelist] PHP book for the wealth-challenged In-Reply-To: <1061321104.3f4279900ac6d@webmail.msstate.edu> Message-ID: <002801c3669a$bda2b6a0$6401a8c0@ralphxorostodu> Joel, I started programming with PHP about 4 yrs ago. At the time there were 3 or 4 PHP books available and I bought all of them. One of those books was Wrox's Professional PHP programming. The book was probably the best one at the time. However I read through the book and then put it away since I ended up doing most of my learning using online tutorials found on sites like: http://www.phpbuilder.com/ http://www.zend.com/developers.php http://www.devshed.com/Server_Side/PHP http://www.phpcomplete.com/ AND...the PHP mailing list. Since then a lot of PHP books have came out. One of the best books I've seen lately is Oreilly's Programming PHP by Rasmus Lerdoff (the creator of PHP). It is well written, concise to the point, and the author also suggest best method approaches to accomplishing certain tasks. Oreilly books aren't for all beginners. I remember a few years back I found Oreilly books too complicated and hard to follow but now the only books I buy are Oreilly books. My advice is to visit your nearest book store and look through all the PHP books available. At that point you can decide which is best for you. Also go to amazon.com search for PHP books and read customer reviews. Additional books you'll want to look at are: PHP and MySQL Web Development by Luke Welling, Laura Thomson Web Database Applications with PHP & MySQL by Hugh E. Williams, David Lane (Paperback - March 2002) MySQL, Second Edition by Paul DuBois SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL by Michael J. Hernandez, John L. Viescas Joe Celko's SQL for Smarties: Advanced SQL Programming by Joe Celko And eventually you may want these in your library: PHP Cookbook by David Sklar, Adam Trachtenberg PHP Developer's Cookbook by Sterling Hughes, Andrei Zmievski MySQL Cookbook by Paul DuBois Hope this helps. Ralph Guzman -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Joel Konkle-Parker Sent: Tuesday, August 19, 2003 12:25 PM To: thelist at lists.evolt.org Subject: [thelist] PHP book for the wealth-challenged I'm a hobbyist web developer and poor college student trying to develop a database-driven website with MySQL and PHP. As such, I'm looking for recommendations for a book that will teach me the basics (and not-so-basics). I've seen the Wrox books (Beginning PHP, Professional PHP) and the O'Reilly book (Programming PHP), but I can't decide which one to spend my hard-earned cash on. Has anyone out there used both? Which was better? Or anyone had a good experience with one or the other? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From andrew at humanbehaviour.co.uk Tue Aug 19 16:57:36 2003 From: andrew at humanbehaviour.co.uk (Andrew) Date: Tue, 19 Aug 2003 22:57:36 +0100 Subject: [thelist] OT: 27 Trojans in the in-box today In-Reply-To: <5.1.0.14.2.20030819130111.03580c50@baratta.com> Message-ID: I have been plagued with pif viruses all day with That movie, Details, Thank you in the subject is this what you are referring to? Andrew >-----Original Message----- >From: thelist-bounces at lists.evolt.org >[mailto:thelist-bounces at lists.evolt.org]On Behalf Of Anthony Baratta >Sent: 19 August 2003 21:06 >To: thelist at lists.evolt.org >Subject: Re: [thelist] OT: 27 Trojans in the in-box today > > >At 12:14 PM 8/19/2003, Frank wrote: > >>Has anyone else gotten hammered? > >I manage quite a few mail servers and we are FLOODED with this crap today. >It's the highest levels I've ever seen. Normally I see one server or two >take a pounding, but this is spread over all my servers. > >Most of the boxes I manage have viri or content filtering so we are >blocking most of it. But the bounce and double bounce notices from the >forged headers are cluttering up everyone's mail boxes. > >Sheesh. > >-- >Anthony Baratta >President >Keyboard Jockeys > >"Conformity is the refuge of the unimaginative." > >-- >* * Please support the community that supports you. * * >http://evolt.org/help_support_evolt/ > >For unsubscribe and other options, including the Tip Harvester >and archives of thelist go to: http://lists.evolt.org >Workers of the Web, evolt ! > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.510 / Virus Database: 307 - Release Date: 14/08/2003 > From ralph at nqionline.com Tue Aug 19 16:52:04 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Tue, 19 Aug 2003 14:52:04 -0700 Subject: [thelist] PHP book for the wealth-challenged In-Reply-To: <1061321104.3f4279900ac6d@webmail.msstate.edu> Message-ID: <002901c3669c$214076b0$6401a8c0@ralphxorostodu> Joel, I started programming with PHP about 4 yrs ago. At the time there were 3 or 4 PHP books available and I bought all of them. One of those books was Wrox's Professional PHP programming. The book was probably the best one at the time. However I read through the book and then put it away since I ended up doing most of my learning using online tutorials found on sites like: http://www.phpbuilder.com/ http://www.zend.com/developers.php http://www.devshed.com/Server_Side/PHP http://www.phpcomplete.com/ AND...the PHP mailing list. Since then a lot of PHP books have came out. One of the best books I've seen lately is Oreilly's Programming PHP by Rasmus Lerdoff (the creator of PHP). It is well written, concise to the point, and the author also suggest best method approaches to accomplishing certain tasks. Oreilly books aren't for all beginners. I remember a few years back I found Oreilly books too complicated and hard to follow but now the only books I buy are Oreilly books. My advice is to visit your nearest book store and look through all the PHP books available. At that point you can decide which is best for you. Also go to amazon.com search for PHP books and read customer reviews. Additional books you'll want to look at are: PHP and MySQL Web Development by Luke Welling, Laura Thomson Web Database Applications with PHP & MySQL by Hugh E. Williams, David Lane (Paperback - March 2002) MySQL, Second Edition by Paul DuBois SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL by Michael J. Hernandez, John L. Viescas Joe Celko's SQL for Smarties: Advanced SQL Programming by Joe Celko And eventually you may want these in your library: PHP Cookbook by David Sklar, Adam Trachtenberg PHP Developer's Cookbook by Sterling Hughes, Andrei Zmievski MySQL Cookbook by Paul DuBois Hope this helps. Ralph Guzman -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Joel Konkle-Parker Sent: Tuesday, August 19, 2003 12:25 PM To: thelist at lists.evolt.org Subject: [thelist] PHP book for the wealth-challenged I'm a hobbyist web developer and poor college student trying to develop a database-driven website with MySQL and PHP. As such, I'm looking for recommendations for a book that will teach me the basics (and not-so-basics). I've seen the Wrox books (Beginning PHP, Professional PHP) and the O'Reilly book (Programming PHP), but I can't decide which one to spend my hard-earned cash on. Has anyone out there used both? Which was better? Or anyone had a good experience with one or the other? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From richard.bennett at skynet.be Tue Aug 19 18:04:14 2003 From: richard.bennett at skynet.be (Richard Bennett) Date: Wed, 20 Aug 2003 00:04:14 +0100 Subject: [thelist] Could you take a look at my site ? References: <3F427DEF.7020005@coretrek.no> Message-ID: <0ff501c366a6$360c83e0$c000a8c0@PORTABLE> Hi, ----- Original Message ----- From: "Vidar Braut Haarr" I've just redesigned one of my sites, and I wondered if you could take a look at it. Q1N.org Redesign: Just to let you know it looks very nice. Glad finally someone uses re-sizable font sizes! I like the colored parts and the icons too. I wouldn't bother with the "Apply style:" part, I don't think anyone actually uses that seriously. cheers, Richard. From ralph at nqionline.com Tue Aug 19 17:17:55 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Tue, 19 Aug 2003 15:17:55 -0700 Subject: [thelist] PHP book for the wealth-challenged In-Reply-To: <1061321104.3f4279900ac6d@webmail.msstate.edu> Message-ID: <003301c3669f$bd32c480$6401a8c0@ralphxorostodu> Joel, I started programming with PHP about 4 yrs ago. At the time there were 3 or 4 PHP books available and I bought all of them. One of those books was Wrox's Professional PHP programming. The book was probably the best one at the time. However I read through the book and then put it away since I ended up doing most of my learning using online tutorials found on sites like: http://www.phpbuilder.com/ http://www.zend.com/developers.php http://www.devshed.com/Server_Side/PHP http://www.phpcomplete.com/ AND...the PHP mailing list. Since then a lot of PHP books have came out. One of the best books I've seen lately is Oreilly's Programming PHP by Rasmus Lerdoff (the creator of PHP). It is well written, concise to the point, and the author also suggest best method approaches to accomplishing certain tasks. Oreilly books aren't for all beginners. I remember a few years back I found Oreilly books too complicated and hard to follow but now the only books I buy are Oreilly books. My advice is to visit your nearest book store and look through all the PHP books available. At that point you can decide which is best for you. Also go to amazon.com search for PHP books and read customer reviews. Additional books you'll want to look at are: PHP and MySQL Web Development by Luke Welling, Laura Thomson Web Database Applications with PHP & MySQL by Hugh E. Williams, David Lane (Paperback - March 2002) MySQL, Second Edition by Paul DuBois SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL by Michael J. Hernandez, John L. Viescas Joe Celko's SQL for Smarties: Advanced SQL Programming by Joe Celko And eventually you may want these in your library: PHP Cookbook by David Sklar, Adam Trachtenberg PHP Developer's Cookbook by Sterling Hughes, Andrei Zmievski MySQL Cookbook by Paul DuBois Hope this helps. Ralph Guzman -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Joel Konkle-Parker Sent: Tuesday, August 19, 2003 12:25 PM To: thelist at lists.evolt.org Subject: [thelist] PHP book for the wealth-challenged I'm a hobbyist web developer and poor college student trying to develop a database-driven website with MySQL and PHP. As such, I'm looking for recommendations for a book that will teach me the basics (and not-so-basics). I've seen the Wrox books (Beginning PHP, Professional PHP) and the O'Reilly book (Programming PHP), but I can't decide which one to spend my hard-earned cash on. Has anyone out there used both? Which was better? Or anyone had a good experience with one or the other? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From pmeeks at msn.com Tue Aug 19 17:18:51 2003 From: pmeeks at msn.com (Pat Meeks) Date: Tue, 19 Aug 2003 15:18:51 -0700 Subject: [thelist] OT: 27 Trojans in the in-box today References: <5.2.1.1.0.20030819150509.00aef588@mail.frankmarion.com> Message-ID: <001601c3669f$e2035bd0$0201a8c0@dellp4> Frank: > Holy Smokes! I received 27 trojans in my in box at an address that I never > give out, and that never receives spam. Most had a From: of ferris.edu > with the title "Thank You" (and variations thereof). Lucky for me, I'm > security minded with all of my defence settings at "Paranoid". Here's an email I just received from Central Command. Regards, Pat --------------------------------------------------------------- VIRUS WARNING ISSUED BY CENTRALCOMMAND? on August 19, 2003 for Worm/SoBig.F VIRUS WARNING The Central Command? Emergency Virus Response TeamT (EVRTT) has received virus infection reports for the new Internet Worm/SoBig.F . Due to increased customer inquires and infection reports the EVRT is issuing a VIRUS WARNING. You are receiving this news letter because you are a subscriber to the Central Command Virus News mailing list. [ EVRTT Virus Warning issued for Worm/SoBig.F ] Name: Worm/SoBig.F Alias: W32/Sobig.f at MM; WORM_SOBIG.F; W32.Sobig.F at mm Type: Internet Worm Discovered: August 19, 2003 Size: ~ 72 KB Platform: Microsoft Windows 9x/ME/NT/2000/XP Worm/Sobig.F is an Internet worm that spreads through e-mail by using addresses it collects in the files with the following extensions, .dbx, .eml, .htm, .html, .txt, and .wab. The worm may arrive in via email in the following format: Subject: (it will contain one of the following) case1: Re: That movie case2: Re: Wicked screensaver case3: Re: Your application case4: Re: Approved case5: Re: Re: My details case6: Re: Details case7: Thank you! case8: Re: Thank you! Body: case1: Please see the attached file for details. case2: See the attached file for details Attachment: (it will contain one of the following) case1: movie0045.pif case2: wicked_scr.scr case3: application.pif case4: document_9446.pif case5: details.pif case6: your_details.pif case7: thank_you.pif case8: document_all.pif case9: your_document.pif Strings within the worm suggest outgoing messages are constructed taken from the cases above. If executed, the worm copies itself in the \windows\ directory under the filename "winppr32.exe". A new file will be created namend %windir%\winstt32.dat. This file does not contain viral code. - \Windows\winstt32.dat So that it gets run each time a user restart their computer the following registry key gets added: - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run "TrayX"="C:\\WINDOWS\\winppr32.exe /sinc" - HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run "TrayX"="C:\\WINDOWS\\winppr32.exe /sinc" [ Vexira Antivirus Solutions ] - Vexira Antivirus for Windows workstations/desktops - Vexira Antivirus for Windows Server - Vexira Antivirus for Linux Server - Vexira Antivirus for Linux Workstation - Vexira Antivirus for FreeBSD - Vexira Antivirus for OpenBSD - Vexira Antivirus for Sendmail - Vexira Antivirus for Sendmail + Milter - Vexira Antivirus for Qmail - Vexira Antivirus for Postfix - Vexira Antivirus for Exim More information: http://www.centralcommand.com [ Subscription information ] Central Command, Inc. respects your online privacy. You at anytime can easily remove your e-mail address from the Central Command mailing list by entering in your e-mail address at the following web page: http://www.centralcommand.com/unsubscribe.html You will receive a confirmation message about your successful removal from News [ Legal Notice and Disclaimer ] THIS DOCUMENT IS PROVIDED FOR INFORMATIONAL PURPOSES ONLY. Disclaimer of warranties and limitation of liability This information is provided by Central Command, Inc. on an "AS IS" and "AS AVAILABLE" basis. Central Command, Inc. makes no representations or warranties of any kind, express or implied, as to the information, content, materials, or products included, or mentioned within this information bulletin. You expressly agree that your use of this information is at your sole risk. The user assumes the entire risk as to the accuracy and the use of this document. To the full extent permissible by applicable law, Central Command, Inc. disclaims all warranties, express or implied, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose and freedom from infringement. Central Command, Inc. does not warrant that this information is accurate. Central Command, Inc. will not be liable for any damages of any kind arising from the use of this information, including, but not limited to direct, indirect, incidental, punitive, and consequential damages. Certain state laws do not allow limitations on implied warranties or the exclusion or limitation of certain damages. if these laws apply to you, some or all of the above disclaimers, exclusions, or limitations may not apply to you, and you might have additional rights. [ Copyrights and Trademarks ] Central Command, PerfectSupport, EVRT, Emergency Virus Response Team, Virus Protection for the Real World, Without us, there's no defense. are trademarks of Central Command Inc. All other trademarks, trade name and product names are property of their respective owners. Copyright ? 2000, 2001, 2002, 2003 Central Command Inc. All rights reserved. From ralph at nqionline.com Tue Aug 19 17:19:34 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Tue, 19 Aug 2003 15:19:34 -0700 Subject: [thelist] TEST - New to List Message-ID: <003401c3669f$f85180b0$6401a8c0@ralphxorostodu> Im new to this list. I posted a response but it has not gone through. Testing... From ralph at nqionline.com Tue Aug 19 17:46:43 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Tue, 19 Aug 2003 15:46:43 -0700 Subject: [thelist] PHP book for the wealth-challenged In-Reply-To: <1061321104.3f4279900ac6d@webmail.msstate.edu> Message-ID: <003801c366a3$c3237890$6401a8c0@ralphxorostodu> Another thing I would suggest is to subscribe to php|architect magazine: http://www.phparch.com/ -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Joel Konkle-Parker Sent: Tuesday, August 19, 2003 12:25 PM To: thelist at lists.evolt.org Subject: [thelist] PHP book for the wealth-challenged I'm a hobbyist web developer and poor college student trying to develop a database-driven website with MySQL and PHP. As such, I'm looking for recommendations for a book that will teach me the basics (and not-so-basics). I've seen the Wrox books (Beginning PHP, Professional PHP) and the O'Reilly book (Programming PHP), but I can't decide which one to spend my hard-earned cash on. Has anyone out there used both? Which was better? Or anyone had a good experience with one or the other? -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From rudy937 at rogers.com Tue Aug 19 17:57:14 2003 From: rudy937 at rogers.com (rudy) Date: Tue, 19 Aug 2003 18:57:14 -0400 Subject: [thelist] SQL Query References: Message-ID: <00da01c366a5$5fe954f0$52639c18@r9373j4yqbe8dy> >>>> SELECT * from mytable WHERE myfield LIKE "%.%.%" >>>> AND NOT myfield LIKE "%.%.%.%" > > > A.B.C.D matches both conditions and therefore would not be selected. > A.B.C only matches the first condition and therefore would be selected. you're absolutely right, tab and i am an idiot ® ™ © when in doubt, test rudy From austin at dotmail.co.uk Tue Aug 19 18:15:48 2003 From: austin at dotmail.co.uk (Austin Harris) Date: Wed, 20 Aug 2003 00:15:48 +0100 Subject: [thelist] Could you take a look at my site ? In-Reply-To: <20030819224956.BAB951C6@admin.redroom.biz> Message-ID: IE5 Mac OS 9.2 I can't read the text... (White on a pale background!) Not going to comment on code etc. as it is not my main area but if you can't read the content no-one is going to come to the site twice! NN6 Mac OS 9.2 Text is dark grey, much better, can actually read it. NN4.7 Falls apart a bit, but as you don't care I won't go on :) on 19/8/03 11:49 pm, thelist-request at lists.evolt.org at thelist-request at lists.evolt.org wrote: > > Date: Tue, 19 Aug 2003 21:43:43 +0200 > From: Vidar Braut Haarr > To: "thelist at lists.evolt.org" > Subject: [thelist] Could you take a look at my site ? > Message-ID: <3F427DEF.7020005 at coretrek.no> > Content-Type: text/plain; charset=us-ascii; format=flowed > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Precedence: list > Reply-To: "thelist at lists.evolt.org" > Message: 8 > > Greetings ! > > I've just redesigned one of my sites, and I wondered if you could take a > look at it. > > If you dislike the interactive design, I don't care. If you like it, > however, you are welcome to complement me :) > Also, I don't really care if it works in IE<6 or not. If it's visible > and readable in IE 6, that's good enough for me. > However, I would appreciate some testing in Opera 7, Konqueror and Safari. > > What I'm really fishing for here, is tips and tricks and comments > directed towards the code-design. XHTML-, CSS- and JavaScript-wise. > > > I'm not sure if the site validates as XHTML1.1 Strict yet, but I'll fix > that later. > > The JS was copied from one of the contestants in a W3C redesign contest > a while ago. > > Oh, and none of the links work :) This is just a test-design. > > Q1N.org Redesign: > From ken at adOpenStatic.com Tue Aug 19 19:29:50 2003 From: ken at adOpenStatic.com (Ken Schaefer) Date: Wed, 20 Aug 2003 10:29:50 +1000 Subject: [thelist] MS SQL Server - T-SQL References: Message-ID: <00c301c366b2$2ae52ce0$0a345e81@careersAD.unsw.edu.au> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From: "barry sweeney" Subject: RE: [thelist] MS SQL Server - T-SQL : Wow! : : Thanks Joshua and Tab, I've so much to learn! : : One question, I understand how this approach will ensure : that there is never a synchronisation issue, but from an : efficiency point of view, isn't it better to update one field : once rather than 'recalculate' it everytime it's displayed? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unless you're running the world's biggest board, I doubt you'd have problems provided you use appropriate hardware, and appropriate indexes... SQL Server is quite capable of scaling to ridiculous heights these days (which doesn't help if you're using some kind of shared hosting plan, and sharing the database server with 10,000 other users!) However, to test, open Query Analyser, and hit the "Show Execution Plan" button, and have a look at the estimated cost of your query. Cheers Ken From mindmachine at hotmail.com Tue Aug 19 19:37:03 2003 From: mindmachine at hotmail.com (Og) Date: Tue, 19 Aug 2003 20:37:03 -0400 Subject: [thelist] Setting up PHP & mySQL Message-ID: Hello all. I've finally decided to take the plunge into PHP after all these years of ASP. The problem is I'm overwhelmed by the amount of information concerning the installation, which PHP to install and how to get it working on my site. If anyone has some simple pointers or a site with some solid instructions I would really appreciate it. I learn through messing around with a task, but the installation alone is getting me frustrated. I realize I could work it out myself, but that's what this list is for.. a little help. I'm running XP with IIS.. so any pointers would be greatfully met. Thanks. Cheers Paul J Maguire CEO Ogmatter www.ogmatter.com info at ogmatter.com "Ogmatter In mind" Note : All outgoing emails have been scanned with Norton Anti-Virus From chris.price at speed-mail.co.uk Tue Aug 19 20:21:08 2003 From: chris.price at speed-mail.co.uk (Chris Price) Date: Wed, 20 Aug 2003 02:21:08 +0100 Subject: [thelist] Re: Mac IE float: left problem In-Reply-To: <200308192350367.SM01344@acornparenting.org> Message-ID: > http://www.liamdelahunty.com/tips/css_class_float.php > http://www.liamdelahunty.com/tips/css_class_float_min_width.php > http://www.liamdelahunty.com/tips/css_class_float_width.php > All work in windows IE 5.5 and Opera 7.01, so could some kind soul please > have a look and let me know if any of the display works in IE Mac 5? (Any > others too.) The images display as lists in IE5.2(Mac) for the first 2 urls but appear in 2 rows for the 3rd. All 3 look about right in Camino and Safari. -- I recently downloaded IE5.2.3 for Mac which I think is going to be the last ever. I hate it. There's no reason to have IE on a Mac anymore. Safari is far better and in my experience Camino's rendering is closer to IE on a PC. Given that the Mac audience is a small percentage anyway I can't see that IE on Mac will be worth considering within quite a short period of time. -- Chris Price From dianesoini at earthlink.net Tue Aug 19 21:20:19 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Tue, 19 Aug 2003 19:20:19 -0700 Subject: [thelist] What is wrong with this site? In-Reply-To: <200308191215.19PbWE5003NZFkD0@kite> Message-ID: I recently downloaded Firebird for the first time, and in the process I found some kind of extensions page where lots of add-on functionality was there to download. The one I chose did just what you are talking about: developer tools. It will validate the html, the css, the accessibility, outline all block-level elements, turn all tables into red outlines, and a bunch of similar stuff. It is really cool. I think I found the extensions list page through the browser's menu. I don't have the browser here at home, otherwise I would send you the URL to this extension. Diane On Tuesday, August 19, 2003, at 12:15 PM, thelist-request at lists.evolt.org wrote: > Think of Javascript errors. In Internet Explorer, if there's a > Javascript error on a page you get the little JS icon bottom left. > Double-click on that and you get details of the error(s). Why can't > we have something like this for HTML and CSS errors? The browser has > to parse the content anyway... One for accessibility problems would be > great too. > > I believe Opera may have something like this already but I'd love to > see it in Firebird (and IE as well but that'll never happen). From rudy937 at rogers.com Tue Aug 19 21:22:48 2003 From: rudy937 at rogers.com (rudy) Date: Tue, 19 Aug 2003 22:22:48 -0400 Subject: [thelist] Bold vs. Strong References: <005201c36645$1ad1f5d0$ba10b30a@FTUCOKT82QZJU6> Message-ID: <002901c366c1$f4e6bef0$52639c18@r9373j4yqbe8dy> > If something is bold, in the *print* sense of the word, > then it's because of some emphasis, hence the adoption > of strong that is more er... semantic than visual. i disagree, a bold style does not necessarily mean emphasis, although i will concede that it may to many people but what about EM? why do people looking for alternatives to B go straight to STRONG? EM is for emphasis, and STRONG is for, well, even stronger emphasis, at least, if you really care about the semantics, which few people do well, natch, i can hear them saying, EM is the same as italics!!!!!!!! italics are totally different from bold, right? and where we used to use B, we want emphasis, okay? so, um, skip over EM and go straight to STRONG leave italics to CITE, okay? and don't bother us with the difference between EM and STRONG alles klar? ;o) From dianesoini at earthlink.net Tue Aug 19 22:35:14 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Tue, 19 Aug 2003 20:35:14 -0700 Subject: [thelist] Could you take a look at my site ? In-Reply-To: <200308191559.19Pfry6xZ3NZFlr0@killdeer> Message-ID: <4F6732B0-D2BF-11D7-BE35-00039358CB42@earthlink.net> Not sure what kind of feedback you want, since you only want praise. I use Safari. But I don't know what it looks like in IE6, so I can't tell you if things look "wrong." Here are my observations in Safari: There's way too much difference in font-size between the little boxes in the bottom left corner and the rest of the page. The rest of the page has big fonts, the little boxes in the corner are so tiny they are illegible. When I increase the text size so I can read it (a Mac browser feature from way back that really helps with all that illegible, tiny text out there) the text for the rest of the page is so large it is comical. Macs don't have windows that are stuck to the edges of the screen. As a result, all my browser windows are always of various sizes, and never are they the full size of my window. I don't know the exact size I was viewing the page in, but it was somewhere above 800 and below 1024px width. There is a horizontal scroll bar. There is no reason for the scroll bar because all the content fits. This means that maybe the bug that Mac browsers have rendering boxes near the right edge was rearing its ugly head. I was in Safari, though, not IE. Anyway, try this page: http://developer.apple.com/internet/css/ie5cssbugs.html Any reason why the language is Norwegian even though the content is actually in English? On Tuesday, August 19, 2003, at 03:59 PM, thelist-request at lists.evolt.org wrote: > Subject: [thelist] Could you take a look at my site ? > Message-ID: <3F427DEF.7020005 at coretrek.no> > Content-Type: text/plain; charset=us-ascii; format=flowed > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Precedence: list > Reply-To: "thelist at lists.evolt.org" > Message: 8 > > Greetings ! > > I've just redesigned one of my sites, and I wondered if you could take > a > look at it. > > If you dislike the interactive design, I don't care. If you like it, > however, you are welcome to complement me :) > Also, I don't really care if it works in IE<6 or not. If it's visible > and readable in IE 6, that's good enough for me. > However, I would appreciate some testing in Opera 7, Konqueror and > Safari. > > What I'm really fishing for here, is tips and tricks and comments > directed towards the code-design. XHTML-, CSS- and JavaScript-wise. > > > I'm not sure if the site validates as XHTML1.1 Strict yet, but I'll fix > that later. > > The JS was copied from one of the contestants in a W3C redesign contest > a while ago. > > Oh, and none of the links work :) This is just a test-design. > > Q1N.org Redesign: > From thelist at meidomus.com Tue Aug 19 22:48:47 2003 From: thelist at meidomus.com (Burhan Khalid) Date: Wed, 20 Aug 2003 06:48:47 +0300 Subject: [thelist] Setting up PHP & mySQL In-Reply-To: References: Message-ID: <113546275.20030820064847@lists.evolt.org> Wednesday, August 20, 2003, 3:37:03 AM, Og wrote: O> Hello all. I've finally decided to take the plunge into PHP after all these years of ASP. The problem is I'm overwhelmed by the amount of information concerning the installation, which PHP to O> install and how to get it working on my site. If anyone has some simple pointers or a site with some solid instructions I would really appreciate it. I learn through messing around with a task, O> but the installation alone is getting me frustrated. I realize I could work it out myself, but that's what this list is for.. a little help. I'm running XP with IIS.. so any pointers would be O> greatfully met. Thanks. Paul : I wrote a tutorial that shows you how to setup PHP and Apache on Windows. There is also one that shows you how to setup MySQL on Windows. I even have an example script that integrates all three together. Although I don't have PHP + IIS specifics, you are welcome to email me offlist about any questions that you might have. Offlist email is webmaster[at]meidomus[dot]com. The links to the install tutorials are on the index page of my site (in the sig). The rest of the stuff you can find by either searching, or clicking on the PHP link under the sections menu on the left. Comments always welcome, and if you post one to an article, I'll know thanks to MT's email feature :) -- Regards, Burhan Khalid thelist[at]meidomus[dot]com http://www.meidomus.com From mark.m at optushome.com.au Tue Aug 19 23:17:57 2003 From: mark.m at optushome.com.au (Mark M) Date: Wed, 20 Aug 2003 14:17:57 +1000 Subject: [thelist] Setting up PHP & mySQL Message-ID: <200308200418.h7K4HvK08566@mail023.syd.optusnet.com.au> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From jjk3 at msstate.edu Tue Aug 19 23:48:05 2003 From: jjk3 at msstate.edu (Joel Konkle-Parker) Date: Tue, 19 Aug 2003 23:48:05 -0500 (CDT) Subject: [thelist] Global variables in functions? Message-ID: <1061354885.3f42fd85a1eb0@webmail.msstate.edu> This looks like something very fundamental that I'm just not understanding... I have a PHP script that declares some variables and a body() function, then includes a template script that integrates body() and prints the page. When I do this: -- $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; $output = file_get_contents ($url); function body() { echo $output; } -- body() ends up empty. But when I do this: -- function body() { $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; $output = file_get_contents ($url); echo $output; } -- it works fine. The ultimate goal here is to read the resulting page from $url, strip off everything but the contents of , and print the result. What am I missing here? (btw, any tips on the line-stripping?) -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] From dbindel at austin.rr.com Tue Aug 19 23:56:41 2003 From: dbindel at austin.rr.com (David Bindel) Date: Tue, 19 Aug 2003 23:56:41 -0500 Subject: [thelist] Global variables in functions? In-Reply-To: <1061354885.3f42fd85a1eb0@webmail.msstate.edu> Message-ID: <000301c366d7$72a51890$6500a8c0@david> Joel wrote: > When I do this: > > -- > $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; > $output = file_get_contents ($url); > > function body() { > echo $output; > } > -- > > body() ends up empty. > What am I missing here? Global variables are stored in the $GLOBALS superglobal array, so you have to use $GLOBALS['output'] to get to the $output global when you aren't in global scope. > But when I do this: > > -- > function body() { > > $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; > $output = file_get_contents ($url); > echo $output; > > } > -- > > it works fine. That's because $output is in the scope of that function. In the previous code chunk you gave, $output was outside of the scope of the function (except through the $GLOBALS array.) HTH, David -- David I. Bindel Website Development dbindel at austin.rr.com www.davidbindel.com From khallman at wrack.org Wed Aug 20 00:50:48 2003 From: khallman at wrack.org (Kelly Hallman) Date: Tue, 19 Aug 2003 22:50:48 -0700 (PDT) Subject: [thelist] Global variables in functions? In-Reply-To: <000301c366d7$72a51890$6500a8c0@david> Message-ID: On Tue, 19 Aug 2003, David Bindel wrote: > > function body() { > > $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; > > $output = file_get_contents ($url); > > echo $output; } > > That's because $output is in the scope of that function. In the > previous code chunk you gave, $output was outside of the scope of the > function (except through the $GLOBALS array.) Also, you can use the 'global' statement: function body() { global $url; $output = file_get_contents($url); } It's important to understand the namespace/scoping rules, as it can save a lot of debugging time. (If it seems like a pain, it's actually a good thing, and PHP is not really strict enough in this regard.) It would also not be a bad idea to make the function more reusable by passing the value as an argument, and avoid the whole mess: function body($url) { $output = file_get_contents($url); return $output; } $url = 'index.html'; echo body($url); -- Kelly Hallman http://wrack.org/ From ralph at nqionline.com Wed Aug 20 00:55:45 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Tue, 19 Aug 2003 22:55:45 -0700 Subject: [thelist] Global variables in functions? In-Reply-To: <1061354885.3f42fd85a1eb0@webmail.msstate.edu> Message-ID: <001a01c366df$b2e925b0$6401a8c0@ralphxorostodu> This should do it: $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; $output = file_get_contents ($url) function body($output){ if(!$output){ return false; } else { echo $output; } } -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Joel Konkle-Parker Sent: Tuesday, August 19, 2003 9:48 PM To: thelist at lists.evolt.org Subject: [thelist] Global variables in functions? This looks like something very fundamental that I'm just not understanding... I have a PHP script that declares some variables and a body() function, then includes a template script that integrates body() and prints the page. When I do this: -- $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; $output = file_get_contents ($url); function body() { echo $output; } -- body() ends up empty. But when I do this: -- function body() { $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; $output = file_get_contents ($url); echo $output; } -- it works fine. The ultimate goal here is to read the resulting page from $url, strip off everything but the contents of , and print the result. What am I missing here? (btw, any tips on the line-stripping?) -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From ralph at nqionline.com Wed Aug 20 01:20:30 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Tue, 19 Aug 2003 23:20:30 -0700 Subject: [thelist] Global variables in functions? In-Reply-To: <001a01c366df$b2e925b0$6401a8c0@ralphxorostodu> Message-ID: <001b01c366e3$27eb3080$6401a8c0@ralphxorostodu> Actually, don't use echo, instead use return. function body($output){ if(!$output){ return false; } else { return $output; } } you can then call the function with: $body = body($url); print $body; -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Ralph Guzman Sent: Tuesday, August 19, 2003 10:56 PM To: thelist at lists.evolt.org Subject: RE: [thelist] Global variables in functions? This should do it: $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; $output = file_get_contents ($url) function body($output){ if(!$output){ return false; } else { echo $output; } } -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Joel Konkle-Parker Sent: Tuesday, August 19, 2003 9:48 PM To: thelist at lists.evolt.org Subject: [thelist] Global variables in functions? This looks like something very fundamental that I'm just not understanding... I have a PHP script that declares some variables and a body() function, then includes a template script that integrates body() and prints the page. When I do this: -- $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; $output = file_get_contents ($url); function body() { echo $output; } -- body() ends up empty. But when I do this: -- function body() { $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; $output = file_get_contents ($url); echo $output; } -- it works fine. The ultimate goal here is to read the resulting page from $url, strip off everything but the contents of , and print the result. What am I missing here? (btw, any tips on the line-stripping?) -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From khallman at wrack.org Wed Aug 20 01:28:59 2003 From: khallman at wrack.org (Kelly Hallman) Date: Tue, 19 Aug 2003 23:28:59 -0700 (PDT) Subject: [thelist] Global variables in functions? In-Reply-To: <001a01c366df$b2e925b0$6401a8c0@ralphxorostodu> Message-ID: On Tue, 19 Aug 2003, Ralph Guzman wrote: > This should do it: > > $url = 'http://server/script.php?'.$_SERVER[QUERY_STRING]; > $output = file_get_contents ($url) > > function body($output){ > if(!$output){ > return false; > } else { > echo $output; } } Isn't that pretty reflexive? Looks like a wrapper for echo. I see that you ammended your post saying that it should return $output instead of using echo. However, I still fail to see how it's much different than if ($o) { echo $o; }, unless other code was added... Also, in my last post, I'd like to point out: > function body($url) { > $output = file_get_contents($url); > return $output; } > > $url = 'index.html'; > echo body($url); $url in the function and $url outside the function are totally separate variables. They don't need to be named the same, and it was a poor choice for me to do so in my example code. Here's an improved function, which uses a rudimentary regex to return only what's between the body tags, or nothing. I tested the regex, but it could be jinxed by something like function body($url) { $output = file_get_contents($url); $regex = '/^.*?(.*)<\/body.*$/i'; if (preg_match($regex,$output,$match)) { return $match[1]; } } $fetchurl = 'index.html'; if ($bod = body($fetchurl)) { echo $bod; } else { echo "No body section!"; } -- Kelly Hallman http://wrack.org/ From pradheep at naturesoft.net Wed Aug 20 11:09:34 2003 From: pradheep at naturesoft.net (pradheep) Date: Wed, 20 Aug 2003 12:09:34 -0400 Subject: [thelist] Pradheep :: [Java] Message-ID: <3F439D3E.7010600@naturesoft.net> hey guys i need to know the internal and external difference between String str = "prad"; String str = new String("prad"); do let me know -- \\\|/// \\ ~ ~ // ( @ @ ) -----o00o-(_)-o00o----- c ya PraDheep mobile: 98400 16769 home: 26266317 work: 24617193 -----------0ooo.----- .ooo0 ( ) ( ) ) / \ ( (_/ \_) From mark.m at optushome.com.au Wed Aug 20 01:56:22 2003 From: mark.m at optushome.com.au (Mark M) Date: Wed, 20 Aug 2003 16:56:22 +1000 Subject: [thelist] Pradheep :: [Java] Message-ID: <200308200656.h7K6uNR01566@mail015.syd.optusnet.com.au> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From john at johnallsopp.co.uk Wed Aug 20 01:36:49 2003 From: john at johnallsopp.co.uk (john at johnallsopp.co.uk) Date: Wed, 20 Aug 2003 02:36:49 -0400 (EDT) Subject: [thelist] Pradheep :: [Java] In-Reply-To: <200308200656.h7K6uNR01566@mail015.syd.optusnet.com.au> References: <200308200656.h7K6uNR01566@mail015.syd.optusnet.com.au> Message-ID: <30703.195.92.168.163.1061361409.squirrel@www.johnallsopp.co.uk> >> i need to know the internal and external difference between >> String str = "prad"; >> String str = new String("prad"); I don't think there is one. String is the only object, however, where this 'shorthand' is provided. Every other type of object must be instantiated like the second line. J From lists at frankmarion.com Wed Aug 20 03:07:22 2003 From: lists at frankmarion.com (Frank) Date: Wed, 20 Aug 2003 04:07:22 -0400 Subject: [thelist] UOTD: Anti-Spam x 2 Message-ID: <5.2.1.1.0.20030820040510.00a93328@mail.frankmarion.com> Mega super hyper comprehensive set of anti-spam links. Bookmark worthy. http://spamlinks.port5.com/ Excellent concept! This address will self destruct in 3 messages... http://www.spamgourmet.com/ -- Frank Marion lists at frankmarion.com Keep the signal high. From andy at message.uk.com Wed Aug 20 03:50:46 2003 From: andy at message.uk.com (Andy Budd) Date: Wed, 20 Aug 2003 09:50:46 +0100 Subject: [thelist] Geographical Region from log files Message-ID: <63C6F97E-D2EB-11D7-AF6F-003065480AC6@message.uk.com> Hi folks, I'd like to get a rough idea which countries visitors to my blog are coming from. Anybody know an app (pref mac) that I can feed my logs into and will work out the countries based on the host address? Andy From stephane.deschamps at francetelecom.com Wed Aug 20 03:59:18 2003 From: stephane.deschamps at francetelecom.com (DESCHAMPS =?iso-8859-1?Q?St=E9phane?= DSI/SICOR) Date: Wed, 20 Aug 2003 10:59:18 +0200 Subject: [thelist] Bold vs. Strong In-Reply-To: <002901c366c1$f4e6bef0$52639c18@r9373j4yqbe8dy> Message-ID: <000c01c366f9$572a36a0$ba10b30a@FTUCOKT82QZJU6> rudy, > i disagree, a bold style does not necessarily mean emphasis, > although i will concede that it may to many people Then how could you define it? > but what about EM? > > why do people looking for alternatives to B go straight to STRONG? > > EM is for emphasis, and STRONG is for, well, even stronger > emphasis, at > least, if you really care about the semantics, which few people do Gosh you got me on that one, you're absolutely right. > well, natch, i can hear them saying, EM is the same as italics!!!!!!!! > > italics are totally different from bold, right? True and true again. > and where we used to use B, we want emphasis, okay? > > so, um, skip over EM and go straight to STRONG > > leave italics to CITE, okay? This is pure semantics you're talking here, be careful ;-) I know there's some irony involved on your part, of course. :-) But if for italics I'd use CITE because obviously I'd be citing something, what's (again) the use of bold text with no meaning implied to the boldism? How do you define a text that is "going to be bold only visually but not mean that this part of text is meant to effectively be put forward in my discourse"? > and don't bother us with the difference between EM and STRONG Hehe. I won't. From chris at ecleanuk.com Wed Aug 20 04:08:08 2003 From: chris at ecleanuk.com (Chris Marsh) Date: Wed, 20 Aug 2003 10:08:08 +0100 Subject: [thelist] Windows Server 2003 In-Reply-To: <002901c366c1$f4e6bef0$52639c18@r9373j4yqbe8dy> Message-ID: <000001c366fa$93001860$0e00a8c0@winsvr200301> Dear all I have just installed Windows Server 2003, and added the application server role. Is anyone else using this, and if so do they have any comments? So far I like the fact that the security seems to be tight by default and require the user to enable things rather than the traditional MS way of leaving everything wide open and assuming the user will disable anything that they don't need. Also, it appears that there are some kind of path permissions when creating a virtual directory in IIS. I haven't figured out how to allow browsing to subdirectories of a virtual directory; is this a feature that I have not yet found how to access? Regards Chris Marsh From rudy937 at rogers.com Wed Aug 20 06:37:06 2003 From: rudy937 at rogers.com (rudy) Date: Wed, 20 Aug 2003 07:37:06 -0400 Subject: [thelist] Bold vs. Strong References: <000c01c366f9$572a36a0$ba10b30a@FTUCOKT82QZJU6> Message-ID: <008301c3670f$6399cca0$52639c18@r9373j4yqbe8dy> >> i disagree, a bold style does not necessarily mean emphasis, >> although i will concede that it may to many people > > Then how could you define it? use B for bold, and use EM and STRONG for two levels of emphasis yes, my previous post was largely sarcastic > ... what's (again) the use of bold text with no meaning implied to the boldism? meaning? does there have to be meaning? it's just bold > How do you define a text that is "going to be bold only visually but not mean > that this part of text is meant to effectively be put forward in my discourse"? how to define text that is only bold visually but has no emphasis? B rudy From stephane.deschamps at francetelecom.com Wed Aug 20 07:11:00 2003 From: stephane.deschamps at francetelecom.com (DESCHAMPS =?iso-8859-1?Q?St=E9phane?= DSI/SICOR) Date: Wed, 20 Aug 2003 14:11:00 +0200 Subject: [thelist] Bold vs. Strong In-Reply-To: <008301c3670f$6399cca0$52639c18@r9373j4yqbe8dy> Message-ID: <001c01c36714$1ee3ac70$ba10b30a@FTUCOKT82QZJU6> > De : rudy > > > Then how could you define it? > > use B for bold, and use EM and STRONG for two levels of emphasis Yeah... why not. But see below. > yes, my previous post was largely sarcastic Oh, was it. :-) > > ... what's (again) the use of bold text with no meaning > implied to the > boldism? > > meaning? does there have to be meaning? it's just bold Maybe I'm just wondering aloud, really. But whenever I see some bold I feel the person is trying to communicate the importance of what's bolded. Anyway I see your point, I guess, kind of, in a way (etc). You're into visual decoration, aren't you? > > How do you define a text that is "going to be bold only > visually but not > mean > > that this part of text is meant to effectively be put forward in my > discourse"? > > how to define text that is only bold visually but has no emphasis? > > B Wouldn't that be though? (ouch, don't hit) BTW I'd be curious to see a site that un-italicizes EM and de-bolds STRONG and makes emphasis and stronger emphasis through, I don't know, font size or color. s t e f (aka notabene) http://evolt.org/user/notabene/22696/ http://www.nota-bene.org/ From chris at ecleanuk.com Wed Aug 20 07:27:44 2003 From: chris at ecleanuk.com (Chris Marsh) Date: Wed, 20 Aug 2003 13:27:44 +0100 Subject: [thelist] Bold vs. Strong In-Reply-To: <001c01c36714$1ee3ac70$ba10b30a@FTUCOKT82QZJU6> Message-ID: <000001c36716$7510e9d0$0e00a8c0@winsvr200301> [..] > > > ... what's (again) the use of bold text with no meaning > > implied to the > > boldism? > > > > meaning? does there have to be meaning? it's just bold > > Maybe I'm just wondering aloud, really. > > But whenever I see some bold I feel the person is trying to > communicate the importance of what's bolded. [..] > > how to define text that is only bold visually but has no emphasis? If you embolden text for the sake of emboldening it, it strikes me as a visual formatting issue and not a semantic one. Thus, perhaps one should use (or something) instead of ? The other way to look at it would be - why would you wish to embolden text for no reason? Wouldn't that be a little like writing random WORDS in capital for no PARTICULAR reason? I'm being slightly facetious, but I see too many (usually personal) websites with emboldened or italicised text all over the place where it really has no reason being. $0.02 moe... Regards Chris Marsh From jlance at hbms.com Tue Aug 19 19:55:12 2003 From: jlance at hbms.com (Lance, Joe) Date: Tue, 19 Aug 2003 17:55:12 -0700 Subject: [thelist] Setting up PHP & mySQL Message-ID: <4834FA56488D554A8605906D30EA80CC232A60@opsbkm01.fnbn-online.com> If you're just getting started i would go with the most stable recent release which is 4.3.2. Use the binary installer(http://www.php.net/get/php-4.3.2-installer.exe/from/a/mirror) and it should pretty much install itself -----Original Message----- From: Og [mailto:mindmachine at hotmail.com] Sent: Tuesday, August 19, 2003 5:37 PM To: thelist at lists.evolt.org Subject: [thelist] Setting up PHP & mySQL Hello all. I've finally decided to take the plunge into PHP after all these years of ASP. The problem is I'm overwhelmed by the amount of information concerning the installation, which PHP to install and how to get it working on my site. If anyone has some simple pointers or a site with some solid instructions I would really appreciate it. I learn through messing around with a task, but the installation alone is getting me frustrated. I realize I could work it out myself, but that's what this list is for.. a little help. I'm running XP with IIS.. so any pointers would be greatfully met. Thanks. Cheers Paul J Maguire CEO Ogmatter www.ogmatter.com info at ogmatter.com "Ogmatter In mind" Note : All outgoing emails have been scanned with Norton Anti-Virus -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From vidar at coretrek.no Wed Aug 20 04:39:59 2003 From: vidar at coretrek.no (Vidar Braut Haarr) Date: Wed, 20 Aug 2003 11:39:59 +0200 Subject: [thelist] Could you take a look at my site ? In-Reply-To: <4F6732B0-D2BF-11D7-BE35-00039358CB42@earthlink.net> References: <4F6732B0-D2BF-11D7-BE35-00039358CB42@earthlink.net> Message-ID: <3F4341EF.1010801@coretrek.no> > Not sure what kind of feedback you want, since you only want praise. That is not what I want. I merely stated that I do /not/ want to know if you /didn't/ like the design. What I wanted, was comments like the one you gave below :) > Here are my observations in Safari: > There's way too much difference in font-size between the little boxes in > the bottom left corner and the rest of the page. The rest of the page > has big fonts, the little boxes in the corner are so tiny they are > illegible. Thanks ! I'll take a look at it. > There is a horizontal scroll bar. There is ? As you said, there is no reason that one should appear, because the content all fits in 800.. I'll take a look at the page you gave me: > Anyway, try this page: > http://developer.apple.com/internet/css/ie5cssbugs.html > Any reason why the language is Norwegian even though the content is > actually in English? xml:lang="no"> Whoops :) Thanks for spotting that one. -- Vidar Braut Haarr CoreTrek A/S "Programmers don't die, they just GOSUB without RETURN." From vidar at coretrek.no Wed Aug 20 04:43:21 2003 From: vidar at coretrek.no (Vidar Braut Haarr) Date: Wed, 20 Aug 2003 11:43:21 +0200 Subject: [thelist] Could you take a look at my site ? In-Reply-To: References: Message-ID: <3F4342B9.9050704@coretrek.no> on 20.08.2003 01:15 Austin Harris said the following: > IE5 Mac OS 9.2 > I can't read the text... (White on a pale background!) Huh ? Perhaps I need to set "color:" on the news-boxes then.. I think they just inherit the value now. > > NN6 Mac OS 9.2 > Text is dark grey, much better, can actually read it. Great ! Thanks ! -- Vidar Braut Haarr CoreTrek A/S "Programmers don't die, they just GOSUB without RETURN." From ralph213 at sbcglobal.net Wed Aug 20 04:54:31 2003 From: ralph213 at sbcglobal.net (Ralph Guzman) Date: Wed, 20 Aug 2003 02:54:31 -0700 Subject: [thelist] Global variables in functions? In-Reply-To: Message-ID: <002f01c36701$0db46420$6401a8c0@ralphxorostodu> Kelly You're right. In this case, it does not make a difference if you used echo or return. But it would if you wanted to return multiple values. It is better programming practice to not echo/print inside a function, always return the data whether it be string, boolean, array. This way you can later determine when (and if) it should be displayed and how. Else, you'll find yourself re-writing functions because you need it to return data instead of displaying it. Of course there will be times when it's necessary to break this rule, but personally except for when I'm debugging code, I can't remember the last time I had to break the rule. On a different note, I checked out your web site. I like your style and you have some great artwork. You do freelance work? I'm looking for extra help on graphics and even programming (php/mysql). Contact me off the list if you are available. I am also located in Los Angeles, Glendale to be exact. Most of the people that I've been working with are in other cities, states, and even other countries. So it would be ideal to find somebody who is local. Let me know, Ralph Guzman EM: ralph213sbcblobal.net >Isn't that pretty reflexive? Looks like a wrapper for echo. >I see that you ammended your post saying that it should return $output >instead of using echo. However, I still fail to see how it's much >different than if ($o) { echo $o; }, unless other code was added... -- Kelly Hallman http://wrack.org/ -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From tim at incutio.com Wed Aug 20 07:45:00 2003 From: tim at incutio.com (Tim Fountain) Date: Wed, 20 Aug 2003 13:45:00 +0100 Subject: [thelist] What is wrong with this site? In-Reply-To: References: Message-ID: <1373443328.20030820134500@incutio.com> Tuesday, August 19, 2003, 8:23:50 PM, Jeff Howden wrote: > From: Tim Fountain [Rendering documents sent as text/plain as HTML] >> The reason we have standards in the first place is to try and tie >> all browsers together so they behave in roughly the same way. > *yawn* standards is not what this conversation is about. I think it is, kinda. The specs say the browser should render the content as whatever is specified by the content-type header. When browsers start second guessing the developer you inevitably end up with up unpredictable problems that are extremely difficult to track down. And that's if you notice them at all. >> However if all browsers were 100% standards compliant, as long as >> your page was standards compliant as well you could be pretty sure >> it would work the same in all browsers. It's impossible for >> developers to check sites on _all_ browsers, there are hundreds of >> them. > you contradict yourself in the passage above. I do? I'm saying if all browsers were 100% standards compliant you wouldn't need to check sites on lots of browsers as it should look the same on each. This is good because it's _impossible_ to check sites on all browsers. > there isn't a single browser on the market that's 100% standards > compliant; not one. even the ones that are close have added their > own proprietary garbage to html, css, etc. making the reality of > 100% standards compliance getting the job done a serious joke. It's a problem but I think you make it sound worse than it is. The extensions added to older versions of IE and Netscape did make things a little difficult, but if (as you mentioned in a previous message) by extensions to Mozilla you mean things like the -moz selectors, these are more experimental features which shouldn't cause any problems for other browsers. >> say you've got a messy HTML page with lots of missing and >> other tags to the point where it's not obvious how it's meant to >> look. The browser may "guess", but one browser's guess isn't >> necessarily going to be the same as another browser's > validating your code would solve that problem immediately. True, but it would be a pain to have to validate a site after every little change. -- Tim Fountain | Web developer | Incutio Limited | www.incutio.com email: tim at incutio.com | Tel: +44 8708 700 333 | Fax: +44 7092 181 581 From stephane.deschamps at francetelecom.com Wed Aug 20 07:45:50 2003 From: stephane.deschamps at francetelecom.com (DESCHAMPS =?iso-8859-1?Q?St=E9phane?= DSI/SICOR) Date: Wed, 20 Aug 2003 14:45:50 +0200 Subject: [thelist] Setting up PHP & mySQL In-Reply-To: <4834FA56488D554A8605906D30EA80CC232A60@opsbkm01.fnbn-online.com> Message-ID: <002101c36718$fcd74bf0$ba10b30a@FTUCOKT82QZJU6> > If you're just getting started i would go with the most > stable recent release which is 4.3.2. > Use the binary > installer(http://www.php.net/get/php-4.3.2-installer.exe/from/ > a/mirror) and it should pretty much install itself Paul, While you're at it, forget about IIS with PHP. I seem day after day to discover annoying little bit that would be so easily taken care of by apache. (multiple headers, 404 management...) Try to set up both Apache and IIS if need be, and develop PHP on the apache conf. s t e f (aka notabene) http://evolt.org/user/notabene/22696/ http://www.nota-bene.org/ From roselli at earthlink.net Wed Aug 20 07:50:08 2003 From: roselli at earthlink.net (aardvark) Date: Wed, 20 Aug 2003 08:50:08 -0400 Subject: [thelist] Bold vs. Strong In-Reply-To: <000001c36716$7510e9d0$0e00a8c0@winsvr200301> References: <001c01c36714$1ee3ac70$ba10b30a@FTUCOKT82QZJU6> Message-ID: > From: "Chris Marsh" [...] > If you embolden text for the sake of emboldening it, it strikes me as > a visual formatting issue and not a semantic one. Thus, perhaps one > should use (or something) > instead of ? The other way to look at it would be - why would low-impact response, since i responded to this very idea of the span just over a week ago: http://lists.evolt.org/archive/Week-of-Mon-20030811/146532.html > you wish to embolden text for no reason? Wouldn't that be a little > like writing random WORDS in capital for no PARTICULAR reason? I'm > being slightly facetious, but I see too many (usually personal) > websites with emboldened or italicised text all over the place where > it really has no reason being. [...] while i agree that it often isn't necessary, many people do it... in fact, i had an example i posted on this thread over a year ago about people who do it for no reason: http://lists.evolt.org/archive/Week-of-Mon-20020729/119519.html was that the laziest response *ever*? -- my latest book project: Web Graphics for Non-Designers http://amazon.com/exec/obidos/ASIN/1904151159/evoltorg02-20 ISBN: 1904151159 From rudy937 at rogers.com Wed Aug 20 07:55:03 2003 From: rudy937 at rogers.com (rudy) Date: Wed, 20 Aug 2003 08:55:03 -0400 Subject: [thelist] Bold vs. Strong References: <000001c36716$7510e9d0$0e00a8c0@winsvr200301> Message-ID: <010d01c3671a$48b75190$52639c18@r9373j4yqbe8dy> > If you embolden text for the sake of emboldening it, it strikes me as a > visual formatting issue and not a semantic one. exactly > Thus, perhaps one should use > (or something) instead of ? we've already covered this B is much better than SPAN in this example B is intended specifically for the stated purpose of emboldening text > The other way to look at it would be - why would you wish to > embolden text for no reason? well, i specifically said it was for a visual reason a visual reason is a reason ;o) rudy From jay.blanchard at niicommunications.com Wed Aug 20 08:13:51 2003 From: jay.blanchard at niicommunications.com (Jay Blanchard) Date: Wed, 20 Aug 2003 08:13:51 -0500 Subject: [thelist] What is wrong with this site? Message-ID: [snip] .... if all browsers were 100% standards compliant .... there isn't a single browser on the market that's 100% standards compliant .... [/snip] The fundamental flaw in the discussion is that there are no standards! Those things that the W3C publishes are "recommendations"....not "standards". And that is why browser manufacturers are free to do as they please. If a browser manufacturer wants to create their very own mark-up language they are free to do so. The problem of cross-browser compatibility will always be an issue due to this. From SCaudill at municode.com Wed Aug 20 08:27:28 2003 From: SCaudill at municode.com (Stephen Caudill) Date: Wed, 20 Aug 2003 09:27:28 -0400 Subject: [thelist] CSS: best way to format for TD's and A's Message-ID: <77025926DDD85A4D886C5B8A34E43E742D773B@exchange.internal.municode.com> Casey Crookston on Tuesday, August 19, 2003 4:49 PM said: : What is the most effective way to format css code and html for a : class to be effective with in and
tags. : Thanks in advance. Hi Casey, Doesn't look like you gotten any bites, so here's my take on this. I don't see where you're envoking the 'tab' class in your HTML, so I'll go over this with contextual selectors and with classes as selectors. First, my preffered method, contextual selectors: The CSS: table{ font:11px normal Arial, Helvetica, sans-serif; color:white; padding:0px 0px 0px 5px; } table a{ text-decoration:none; color: #0000ff; } table a:hover{ text-decoration:underline; } Probably the best way to utilize the above is by having a parent contextual selector. I generally use something like
for the main content of the site. You would modify the selectors above like so: #content table -or- div#content table Now, with classes as selectors: The HTML:
text 1 text 2
The CSS: .tab{ font:11px normal Arial, Helvetica, sans-serif; color:white; padding:0px 0px 0px 5px; } .tab a{ text-decoration:none; color: #0000ff; } .tab a:hover{ text-decoration:underline; } Finally, here's the W3C reference for selectors: It's a quick read and an invaluable reference! hth, Stephen Caudill http://www.mechavox.com From lists at wirelust.com Wed Aug 20 09:32:27 2003 From: lists at wirelust.com (Mike F) Date: Wed, 20 Aug 2003 10:32:27 -0400 Subject: [thelist] Geographical Region from log files In-Reply-To: <63C6F97E-D2EB-11D7-AF6F-003065480AC6@message.uk.com> References: <63C6F97E-D2EB-11D7-AF6F-003065480AC6@message.uk.com> Message-ID: <3F43867B.4080309@wirelust.com> I believe AWStats (http://awstats.sourceforge.net/) will do that. And I quote: "Country detection from IP location (geoip) or domain name." Mike Andy Budd wrote: > Hi folks, > > I'd like to get a rough idea which countries visitors to my blog are > coming from. Anybody know an app (pref mac) that I can feed my logs into > and will work out the countries based on the host address? > > Andy > From lacjoe at wsinc.com Wed Aug 20 10:42:57 2003 From: lacjoe at wsinc.com (Joe LaChapell) Date: Wed, 20 Aug 2003 10:42:57 -0500 Subject: [thelist] Geographical Region from log files In-Reply-To: <63C6F97E-D2EB-11D7-AF6F-003065480AC6@message.uk.com> References: <63C6F97E-D2EB-11D7-AF6F-003065480AC6@message.uk.com> Message-ID: <3F439701.1010408@wsinc.com> webalizer will do that. :) http://www.mrunix.net/webalizer/ It's a very nice log alaysis program. -joe Andy Budd wrote: > Hi folks, > > I'd like to get a rough idea which countries visitors to my blog are > coming from. Anybody know an app (pref mac) that I can feed my logs into > and will work out the countries based on the host address? > > Andy > From rob.smith at THERMON.com Wed Aug 20 11:14:04 2003 From: rob.smith at THERMON.com (Rob Smith) Date: Wed, 20 Aug 2003 11:14:04 -0500 Subject: [thelist] Understanding CSS with 3 digit colors ? Message-ID: <0CEC8258A6E4D611BE5400306E1CC9271E4E7B@smtmb.tmc.local> Hi list, I've been trying to beef up my CSS skills and I've noticed something that I'm not real familiar with. Would someone please explain to me why people are defining colors with only 3 hex numbers? For example: A:hover { FONT-WEIGHT: 900; COLOR: #555; Font-Size: 10px; } Thanks Rob.Smith From wes at pmason.karoo.co.uk Wed Aug 20 11:21:27 2003 From: wes at pmason.karoo.co.uk (Wesley Aaron Mason (1st Vamp)) Date: Wed, 20 Aug 2003 17:21:27 +0100 Subject: [thelist] Could you take a look at my site ? In-Reply-To: <0ff501c366a6$360c83e0$c000a8c0@PORTABLE> References: <3F427DEF.7020005@coretrek.no> <0ff501c366a6$360c83e0$c000a8c0@PORTABLE> Message-ID: <689272149.20030820172127@pmason.karoo.co.uk> -----BEGIN PGP SIGNED MESSAGE----- Hash: MD5 Note: I'm sorry for replying to a reply, but I deleted the original when I was very tired last night. Design looks very nice and clean, nice use of XHTML 1.1 and CSS. A slight rendering bug I've noticed at high screen resolutions is that the webmail login link in the navigation area wraps to another line (that is the greater than sign (>)) on mouse over, could try making the width of the navigation area take up a higher percentage of screen space to avoid this? A note about style switchers, this is something that has gotten a lot of advocacy as of late (and thus could be touchy ground, but oh well), especially by alistapart.com (with JavaScript CSS switching scripts written by Paul Sowden of idontsmoke.co.uk; they can be highly useful, when used in the right context and made correctly, especially when you'd like to leave a specific design more accessable to those who might have difficulty using it, and so allow them to dynamically switch to a more usable design. For a wrap up I'll also just echo the happy sentiments re. re-sizable font sizes, a design I always adhere. - -- 1stVamp (Wesley Aaron Mason) [ Site at somewhere :: http://1stvamp.org/ ] [ Webcomic from nowhere :: http://gfbowl.com/ ] Wednesday, August 20, 2003, 12:04:14 AM, Richard Bennett wrote: > Hi, > ----- Original Message ----- > From: "Vidar Braut Haarr" > I've just redesigned one of my sites, and I wondered if you could take a > look at it. > Q1N.org Redesign: > > Just to let you know it looks very nice. > Glad finally someone uses re-sizable font sizes! > I like the colored parts and the icons too. > I wouldn't bother with the "Apply style:" part, I don't think anyone > actually uses that seriously. > cheers, > Richard. -----BEGIN PGP SIGNATURE----- Version: 2.6 iQIMAwUAP0OgC+tR7En81eJTAQGoOw+3WkVEyrTRG75XCvl9/rqeIqRBsDxqBgXL LwOjCcdd65hFtYulhE3EwDzE+nlKgOkMuqYkl22trvQtNKK5t46rUsCP8IVhHCPh 2KNZEeaNpR7LaOcmOFUV1vcfqMV/zZSXhKPf+8tjyHjDiPnU43qMlH6azIkZSed5 /r0LvcirX513lLn/MGU/FKRJmy60kombSsjlQxQKCyrtcgvv/ezuWetjbPyG4u90 I+Gemh+1Ba6a7TsHZrBshCNyJ8Z+fw4tqtPJNP7SnE+i5guJER8mMfesLUm6b+FU T0q6snBc7wg/x8N0v+PfnKa/Q8GWvJpFOrpeXbtSrt1TR4Dp0Ea01T3IyEm1paT8 CQgibyqcC2TK2GOJM3Dm4JbXv0iWNCdraM3oLgP3fTik4bQCaixzxUFvUpYBH5JY VHJdAe+ctgSCbu/rY7GLG3kAkEeiXqXqojQ0QQRzJ1NoMAR7wYHotr+w3FS99foV RU5WnhaVvWSECBHaqAZ6/8mkFlTZxOUQtQyVUFQ44VtKpQgZfl64NFyEDnovD+iV SlMNrB/ooCaT62memjIo8tzU0tQQH3pwvpZBBOTgmZkYexKaiOQC0Xf3Qm1bstek V64CT178h21hX18SBELWI3oT9T6TA18HuxaC3JYckxttrylX7cqKqx7Ncy1Sepo= =xRWi -----END PGP SIGNATURE----- From sbraun at rugged.com Wed Aug 20 12:34:23 2003 From: sbraun at rugged.com (Sylvia Braunstein) Date: Wed, 20 Aug 2003 19:34:23 +0200 Subject: [thelist] Background no-repeat Message-ID: How do I get a backgound not to repeat itself in all the browsers? _________________________________________ Sylvia Braunstein Technical Writer Aitech Systems, Ltd. Tel : +972-9-9600639 Fax : +972-9-9544315 Mobile : 972-56-399078 Email : sbraun at rugged.com __________________________________________ From mindmachine at hotmail.com Wed Aug 20 11:38:56 2003 From: mindmachine at hotmail.com (Og) Date: Wed, 20 Aug 2003 12:38:56 -0400 Subject: [thelist] Setting up PHP & mySQL References: <002101c36718$fcd74bf0$ba10b30a@FTUCOKT82QZJU6> Message-ID: Excellent.. I got it all setup, through the help I got here and the instructions with mySQL and PHP.. it worked. Thanks so much for your help. A special thanks to Burhan Khalid for his simple instructions for PHP and mySQL installation. Now I'm looking for some mySQL database admin software.. shareware or freeware is fine. Cheers. Paul J Maguire CEO Ogmatter www.ogmatter.com info at ogmatter.com ----- Original Message ----- From: "DESCHAMPS St?phane DSI/SICOR" To: Sent: Wednesday, August 20, 2003 8:45 AM Subject: RE: [thelist] Setting up PHP & mySQL > If you're just getting started i would go with the most > stable recent release which is 4.3.2. > Use the binary > installer(http://www.php.net/get/php-4.3.2-installer.exe/from/ > a/mirror) and it should pretty much install itself Paul, While you're at it, forget about IIS with PHP. I seem day after day to discover annoying little bit that would be so easily taken care of by apache. (multiple headers, 404 management...) Try to set up both Apache and IIS if need be, and develop PHP on the apache conf. s t e f (aka notabene) http://evolt.org/user/notabene/22696/ http://www.nota-bene.org/ ---------------------------------------------------------------------------- ---- > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! > From norman.bunn at craftedsolutions.com Wed Aug 20 11:45:41 2003 From: norman.bunn at craftedsolutions.com (Norman Bunn) Date: Wed, 20 Aug 2003 12:45:41 -0400 Subject: [thelist] Maps for Commercial Web Sites In-Reply-To: <1061251830.452cf6ef393d5@webmail.spamcop.net> References: Message-ID: <5.2.1.1.0.20030820122645.04245af0@craftedsolutions.com> Is there a map source that allows you to put a map on a web site at a reasonable cost? So far I have checked: www.mapsonus.com - no maps on web pages, free links for non-commercial sites, map services ($2000 and up) for commercial sites www.mappoint.com - non-commercial only. "You may not modify, copy, distribute, transmit, display, perform, reproduce, publish, license, create derivative works from, transfer, or sell any information, software, products or services obtained from the MSN Sites/Services." www.mapquest.com - no maps on web pages, free links to maps. More advanced, and costly services available www.maps.yahoo.com - personal use only. "...you may copy this Data only as necessary for your personal use..." All I really want is a graphic on a web page showing a business location that can be clicked for an interactive map if desired. As best I can tell, using a screen capture is a violation of the mapping service's copyright even if they are attributed and linked. Norman www.CraftedSolutions.com 803-405-1008 From nemesis at nemesis1.f2o.org Wed Aug 20 12:39:27 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Wed, 20 Aug 2003 13:39:27 -0400 Subject: [thelist] Could you take a look at my site ? In-Reply-To: <3F427DEF.7020005@coretrek.no> References: <3F427DEF.7020005@coretrek.no> Message-ID: <3F43B24F.1030404@nemesis1.f2o.org> Vidar Braut Haarr wrote: > > What I'm really fishing for here, is tips and tricks and comments > directed towards the code-design. XHTML-, CSS- and JavaScript-wise. The site scrolls horzontily from 800x. The page doesn't validate for XHTML1.1 or CSS. Gary -- The Nemesis Project http://nemesis1.f2o.org One Stop CSS From bedouglas at earthlink.net Wed Aug 20 12:52:35 2003 From: bedouglas at earthlink.net (bruce) Date: Wed, 20 Aug 2003 10:52:35 -0700 Subject: [thelist] apache/mysql errors.... In-Reply-To: <00a701c366eb$b0ddcee0$13696964@dirsta> Message-ID: <022d01c36743$d6ea3990$0301a8c0@Mesa.com> Hi... A mysql/Apache issue: I get the following when I'm trying to run a test web site on an Apache 2.0/RH8.0 setup. -------------------------------- Warning: Access denied for user: 'apache at localhost' (Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17 Warning: MySQL Connection Failed: Access denied for user: 'apache at localhost' (Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17 Could not connect: Access denied for user: 'apache at localhost' (Using password: YES) --------------------------------- I have added the mysql user/password to the php file. I can access mysql using the user/password from the linux command line. However, when I check mysql, I don't have an Apache user defined in the user table. Do I need to have one defined, or should the php app utilize the user/passwd/dbname that I provide in the db_connect function? I can access the phpMyAdmin application with no apparent issues/problems... A check of google indicates that the issue seems to be related to not having mysql setup for an Apache user.... As an additional question, if I have a web app that has a mysql db, do I need to allow Apache to have access to each table that the app uses...????? Any help/assitance/pointers to resolve this would be greatle appreciated... Regards, Bruce bedouglas at earthlink.net (925) 866-2790 From hershelr at netvision.net.il Wed Aug 20 12:49:19 2003 From: hershelr at netvision.net.il (Hershel Robinson) Date: Wed, 20 Aug 2003 13:49:19 -0400 Subject: [thelist] [JS] Determine Inherited Visibility Message-ID: <000201c36743$ae52d640$0200000a@hershel> Is anyone aware of a way to determine if a DOM object is invisible due to the CSS style of a parent object? The case in question is that I set the focus to a certain input on a page, but now the parent object (a TD but that's probably irrelevant) may or may not have a class containing display:none. The choice of whether or not to use this class is made by the server when building the page. Setting the focus to a hidden object generates an error, so I need to determine whether or not this input is visible. This site only supports IE6, by the way. I do have a method to avoid this issue, but I am interested if there is a more elegant solution. Thank you, Hershel From madstone at madstone.net Wed Aug 20 13:13:06 2003 From: madstone at madstone.net (Jorah Lavin) Date: Wed, 20 Aug 2003 14:13:06 -0400 Subject: [thelist] Understanding CSS with 3 digit colors ? In-Reply-To: <0CEC8258A6E4D611BE5400306E1CC9271E4E7B@smtmb.tmc.local> Message-ID: <5.2.1.1.0.20030820141159.00a13ec0@pop3.norton.antivirus> At 12:14 08/20/03, you wrote: >COLOR: #555; COLOR: #555; is equal to COLOR: #555555; The single symbol for each pair is shorthand. I've never seen the benefit, myself. From joel at spinhead.com Wed Aug 20 13:20:21 2003 From: joel at spinhead.com (Joel D Canfield) Date: Wed, 20 Aug 2003 11:20:21 -0700 Subject: [thelist] Understanding CSS with 3 digit colors ? Message-ID: <72E9FAA171D63B48AAC707C72900E6B42F23@ireland.spinhead.com> > please explain to me why people are defining colors with only > 3 hex numbers? For example: Shorthand. Anytime the RGB pairs are duplicate digits (e.g., '33', 'ff') they can by written as a single digit. Therefore, instead of writing 'ff33cc' I can write 'f3c' spinhead From cparker at swatgear.com Wed Aug 20 13:14:58 2003 From: cparker at swatgear.com (Chris W. Parker) Date: Wed, 20 Aug 2003 11:14:58 -0700 Subject: [thelist] Understanding CSS with 3 digit colors ? Message-ID: <001BD19C96E6E64E8750D72C2EA0ECEE2B7F2C@ati-ex-01.ati.local> Rob Smith on Wednesday, August 20, 2003 9:14 AM said: > A:hover { > FONT-WEIGHT: 900; COLOR: #555; Font-Size: 10px; > } #555 = #555555 #FAB = #FFAABB #94A = #9944AA #123 = #112233 #FFF = #FFFFFF #2C9 = #22CC99 #ABC = #AABBCC Make sense? Chris. From studio at dutchcelt.nl Wed Aug 20 13:20:45 2003 From: studio at dutchcelt.nl (Egor Kloos) Date: Wed, 20 Aug 2003 20:20:45 +0200 Subject: [thelist] Understanding CSS with 3 digit colors ? In-Reply-To: <0CEC8258A6E4D611BE5400306E1CC9271E4E7B@smtmb.tmc.local> Message-ID: <044F11C8-D33B-11D7-9F97-000A27AF4846@dutchcelt.nl> > Would someone please explain to me why people > are defining colors with only 3 hex numbers? For example: > Normally one would use six, I'm sure you're familiar with that standard. Using three digits is just an abbreviated form of value notation. For example white as a hex value would be #FFFFFF. Websafe colors use three pairs of digits like so; #FF0000 or #33CCFF. The use of hex values in this way allows for obvious abbreviation. #FFFFFF = #FFF #FF0000 = #F00 #33CCFF = #3CF Using shorthand like this also make a CSS file smaller. Although it may not look like much any advantage should be utilized. High speed and low bandwidth, that's something to aim for. A bit here a byte there add up in the end and makes a difference. Hope that clears it up. Egor Kloos http://www.dutchcelt.nl/ http://www.applematters.com/ From joshua at waetech.com Wed Aug 20 13:25:16 2003 From: joshua at waetech.com (Joshua Olson) Date: Wed, 20 Aug 2003 14:25:16 -0400 Subject: [thelist] Setting up PHP & mySQL References: <002101c36718$fcd74bf0$ba10b30a@FTUCOKT82QZJU6> Message-ID: <009501c36748$675759f0$0300a8c0@client1> ----- Original Message ----- From: "Og" Sent: Wednesday, August 20, 2003 12:38 PM > Excellent.. I got it all setup, through the help I got here and the > instructions with mySQL and PHP.. it worked. Thanks so much for your help. > A special thanks to Burhan Khalid for his simple instructions for PHP and > mySQL installation. Now I'm looking for some mySQL database admin > software.. shareware or freeware is fine. I've heard good things about this: http://www.aquafold.com/ <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168 From cparker at swatgear.com Wed Aug 20 13:27:10 2003 From: cparker at swatgear.com (Chris W. Parker) Date: Wed, 20 Aug 2003 11:27:10 -0700 Subject: [thelist] Setting up PHP & mySQL Message-ID: <001BD19C96E6E64E8750D72C2EA0ECEE2B7F2D@ati-ex-01.ati.local> Og on Wednesday, August 20, 2003 9:39 AM said: > Now I'm looking for some mySQL > database admin software.. shareware or freeware is fine. Doesn't get much better than phpMyAdmin. www.phpmyadmin.net. Another really good alternative* is MySQL Control Center from the people at MySQL. www.mysql.com HTH! Chris. * I say "really good alternative" because it can't edit tables like phpMyAdmin can. In phpMyAdmin you can insert new columns anywhere in the table. With MySQL Control Center you have to add a column to the very end of the table. (At least I can't figure it out otherwise.) Also, MySQL Control Center is a gui for Windows and is much faster than phpMyAdmin (web based interface). From studio at dutchcelt.nl Wed Aug 20 13:28:26 2003 From: studio at dutchcelt.nl (Egor Kloos) Date: Wed, 20 Aug 2003 20:28:26 +0200 Subject: [thelist] Background no-repeat In-Reply-To: Message-ID: <16D5A398-D33C-11D7-9F97-000A27AF4846@dutchcelt.nl> > How do I get a backgound not to repeat itself in all the browsers? In CSS terms background repetition can be set using; background-repeat: no-repeat. You can also use shorthand notation; background: url(path-to-your-image.gif) no-repeat; Hope this helps. Egor Kloos http://www.dutchcelt.nl/ http://www.applematters.com/ From jjk3 at msstate.edu Wed Aug 20 13:29:58 2003 From: jjk3 at msstate.edu (Joel Konkle-Parker) Date: Wed, 20 Aug 2003 13:29:58 -0500 (CDT) Subject: [thelist] What is wrong with this site? In-Reply-To: References: Message-ID: <1061404198.3f43be263cbe8@webmail.msstate.edu> Quoting Jay Blanchard : > The fundamental flaw in the discussion is that there are no standards! > Those things that the W3C publishes are "recommendations"....not > "standards". Well, there is ISO/IEC 15445, an HTML standard in the true sense of the word . Good luck finding a browser that complies, though. -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] From csaila at globeandmail.ca Wed Aug 20 13:31:28 2003 From: csaila at globeandmail.ca (Saila, Craig) Date: Wed, 20 Aug 2003 14:31:28 -0400 Subject: [thelist] Understanding CSS with 3 digit colors ? Message-ID: <523ED78FF1F87A44A40907C74F83CBC20A4A20BE@mail.bgm.globeinteractive.com> Rob Smith wrote: > I've been trying to beef up my CSS skills and I've noticed something > that I'm not real familiar with. Would someone please explain to me > why people are defining colors with only 3 hex numbers? For example: It's shorthand, and can be used when each of three colour values (R,G,B) has an identical partner, so: #FF6688 == #F68 #EEEEEE == #EEE But values like #E5E5E5, #4169E1, #FFF0F5 cannot be shortened As a rule-of-thumb, Web-safe colours can be shortened, while named colours can't. Of course, some non-Web safe colours can be shortened, and some named ones -- like Aqua (#00FFFF) -- can be. More at: -- Cheers, Craig Saila ------------------------------------------ craig at saila.com : http://www.saila.com/ ------------------------------------------ From nemesis at nemesis1.f2o.org Wed Aug 20 13:37:01 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Wed, 20 Aug 2003 14:37:01 -0400 Subject: [thelist] Background no-repeat In-Reply-To: References: Message-ID: <3F43BFCD.5030201@nemesis1.f2o.org> Sylvia Braunstein wrote: > How do I get a backgound not to repeat itself in all the browsers? > _________________________________________ You don't if you have to include NN4 for the rest use CSS background-repeat:no-repeat; HTH Gary -- The Nemesis Project http://nemesis1.f2o.org One Stop CSS From norman.bunn at craftedsolutions.com Wed Aug 20 13:38:57 2003 From: norman.bunn at craftedsolutions.com (Norman Bunn) Date: Wed, 20 Aug 2003 14:38:57 -0400 Subject: [thelist] Understanding CSS with 3 digit colors ? In-Reply-To: <0CEC8258A6E4D611BE5400306E1CC9271E4E7B@smtmb.tmc.local> Message-ID: <5.2.1.1.0.20030820143646.03c1fd60@craftedsolutions.com> It is an acceptable practice and it's shorter. http://www.w3.org/TR/REC-CSS1#color-units Norman www.CraftedSolutions.com 803-405-1008 At 12:14 PM 8/20/2003, you wrote: >Hi list, > >I've been trying to beef up my CSS skills and I've noticed something that >I'm not real familiar with. Would someone please explain to me why people >are defining colors with only 3 hex numbers? For example: > >A:hover { > FONT-WEIGHT: 900; COLOR: #555; Font-Size: 10px; >} > >Thanks > >Rob.Smith > >-- >* * Please support the community that supports you. * * >http://evolt.org/help_support_evolt/ > >For unsubscribe and other options, including the Tip Harvester >and archives of thelist go to: http://lists.evolt.org >Workers of the Web, evolt ! From madstone at madstone.net Wed Aug 20 13:43:32 2003 From: madstone at madstone.net (Jorah Lavin) Date: Wed, 20 Aug 2003 14:43:32 -0400 Subject: [thelist] Maps for Commercial Web Sites In-Reply-To: <5.2.1.1.0.20030820122645.04245af0@craftedsolutions.com> References: <1061251830.452cf6ef393d5@webmail.spamcop.net> Message-ID: <5.2.1.1.0.20030820144159.00a01ea0@pop3.norton.antivirus> At 12:45 08/20/03, you wrote: >All I really want is a graphic on a web page showing a business location >that can be clicked for an interactive map if desired. Draw some simple version of a map yourself, just enough to say "map" to the visitor, who then clicks through for the real deal. Maybe use some clip art type of graphic that implies a map, without being a map of the particular area? -Jorah From Josh.S.Feingold at irs.gov Wed Aug 20 13:44:05 2003 From: Josh.S.Feingold at irs.gov (Feingold Josh S) Date: Wed, 20 Aug 2003 14:44:05 -0400 Subject: [thelist] Setting up PHP & mySQL Message-ID: <40BE5618BBFAD6119DAC0004ACE530C6869B74@chm0010mb01.atsc.irs.gov> The best mySQL GUI for Windows that I found: http://www.softpile.com/Development/Databases_and_Networks/Review_14092_inde x.html The above version is free but now they charge for it: http://www.webyog.com/sqlyog/ Also phpmyadin is probably the most popular web app that allows administration of a mySQL database. Josh -----Original Message----- From: Og [mailto:mindmachine at hotmail.com] Sent: Wednesday, August 20, 2003 12:39 PM To: thelist at lists.evolt.org Subject: Re: [thelist] Setting up PHP & mySQL Excellent.. I got it all setup, through the help I got here and the instructions with mySQL and PHP.. it worked. Thanks so much for your help. A special thanks to Burhan Khalid for his simple instructions for PHP and mySQL installation. Now I'm looking for some mySQL database admin software.. shareware or freeware is fine. Cheers. Paul J Maguire CEO Ogmatter www.ogmatter.com info at ogmatter.com ----- Original Message ----- From: "DESCHAMPS St?phane DSI/SICOR" To: Sent: Wednesday, August 20, 2003 8:45 AM Subject: RE: [thelist] Setting up PHP & mySQL > If you're just getting started i would go with the most stable recent > release which is 4.3.2. Use the binary > installer(http://www.php.net/get/php-4.3.2-installer.exe/from/ > a/mirror) and it should pretty much install itself Paul, While you're at it, forget about IIS with PHP. I seem day after day to discover annoying little bit that would be so easily taken care of by apache. (multiple headers, 404 management...) Try to set up both Apache and IIS if need be, and develop PHP on the apache conf. s t e f (aka notabene) http://evolt.org/user/notabene/22696/ http://www.nota-bene.org/ ---------------------------------------------------------------------------- ---- > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester and > archives of thelist go to: http://lists.evolt.org Workers of the Web, > evolt ! > -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From nemesis at nemesis1.f2o.org Wed Aug 20 13:49:48 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Wed, 20 Aug 2003 14:49:48 -0400 Subject: [thelist] Understanding CSS with 3 digit colors ? In-Reply-To: <0CEC8258A6E4D611BE5400306E1CC9271E4E7B@smtmb.tmc.local> References: <0CEC8258A6E4D611BE5400306E1CC9271E4E7B@smtmb.tmc.local> Message-ID: <3F43C2CC.4090806@nemesis1.f2o.org> Rob Smith wrote: > Hi list, > > I've been trying to beef up my CSS skills and I've noticed something that > I'm not real familiar with. Would someone please explain to me why people > are defining colors with only 3 hex numbers? For example: > > A:hover { > FONT-WEIGHT: 900; COLOR: #555; Font-Size: 10px; > } > it is color shorthand. You can't do it with all colors only with grouped pairs color: #FF0000; becomes color: #F00; color: #000000 becomes color: #000 color: #66CC66; becomes color: #6C6; BTW font-weight: breaks in Mac IE every weight is bold. HTH Gary -- The Nemesis Project http://nemesis1.f2o.org One Stop CSS From gaelwolf at waypt.com Wed Aug 20 13:52:00 2003 From: gaelwolf at waypt.com (Norman MacLeod) Date: Wed, 20 Aug 2003 11:52:00 -0700 Subject: [thelist] Background no-repeat In-Reply-To: Message-ID: <200308201852.h7KIqCmw022281@svs23.virtualis.com> You can use CSS to display a non-repeating background image.... The parentheses are included around the image location and name. Norman From tim at incutio.com Wed Aug 20 14:18:24 2003 From: tim at incutio.com (Tim Fountain) Date: Wed, 20 Aug 2003 20:18:24 +0100 Subject: [thelist] apache/mysql errors.... In-Reply-To: <022d01c36743$d6ea3990$0301a8c0@Mesa.com> References: <022d01c36743$d6ea3990$0301a8c0@Mesa.com> Message-ID: <4177977135.20030820201824@incutio.com> On Wednesday, August 20, 2003 at 18:52, bruce wrote: > A mysql/Apache issue: > -------------------------------- > Warning: Access denied for user: 'apache at localhost' (Using password: YES) in > /var/www/html/dbid/mysql/database.php on line 17 > However, when I check mysql, I don't have an Apache user defined in > the user table. Do I need to have one defined, or should the php app > utilize the user/passwd/dbname that I provide in the db_connect > function? It should use whatever you're using in mysql_connect()/mysql_pconnect() - can you paste in that line of code? -- Tim Fountain | Web developer | Incutio Limited | www.incutio.com email: tim at incutio.com | Tel: +44 8708 700 333 | Fax: +44 7092 181 581 From david at us-lot.org Wed Aug 20 13:25:36 2003 From: david at us-lot.org (David Dorward) Date: Wed, 20 Aug 2003 19:25:36 +0100 Subject: [thelist] Background no-repeat In-Reply-To: References: Message-ID: <20030820182535.GA4257%david@us-lot.org> On Wed, Aug 20, 2003 at 07:34:23 +0200, Sylvia Braunstein wrote: > How do I get a backgound not to repeat itself With the CSS background-repeat property. > in all the browsers? That would be rather difficult, not all browsers even support backgrounds at all. -- David Dorward http://dorward.me.uk/ From tss24 at cornell.edu Wed Aug 20 14:30:46 2003 From: tss24 at cornell.edu (ted serbinski) Date: Wed, 20 Aug 2003 15:30:46 -0400 Subject: [thelist] Understanding CSS with 3 digit colors ? In-Reply-To: <0CEC8258A6E4D611BE5400306E1CC9271E4E7B@smtmb.tmc.local> Message-ID: > Would someone please explain to me why people > are defining colors with only 3 hex numbers? For example: > > A:hover { > FONT-WEIGHT: 900; COLOR: #555; Font-Size: 10px; > } This is merely short hand notation. #990000 = #900, #555555 = #555, and so forth. I suppose if you are defining a bunch of different colors this 3 character savings could add up, but otherwise, I don't see any need to use one way over the other, just personal preference. Hope that helps, ted From bedouglas at earthlink.net Wed Aug 20 14:41:26 2003 From: bedouglas at earthlink.net (bruce) Date: Wed, 20 Aug 2003 12:41:26 -0700 Subject: [thelist] [users@httpd] apache/mysql errors.... In-Reply-To: <00a701c366eb$b0ddcee0$13696964@dirsta> Message-ID: <022d01c36743$d6ea3990$0301a8c0@Mesa.com> Hi... Update.... We have the following setup in our httpd.conf file. We've tried to give what's related to the issue. We're trying to set up a virtual host for a test project. The behavior that we're seeing is that we can type: http://foo.com but the url that gets displayed is http://12.x.x.x where 12.x.x.x is the address of the external router (foo.com is the internal IP of the Internal machine. The machine is behind a linksys router.) We're not sure why we're getting the 12.x.x.x from the server/app.... We'd like to have the app display the The following information is from the httpd.conf file: Listen 80 . . . ServerName 192.168.1.52 . . . UseCanonicalName on . . . # # added the namevirtualhost (b douglas) # NameVirtualHost 192.168.1.52 #NameVirtualHost 12.x.x.x:80 # Virtual hosts # #bdouglas this was commented out... # uncomment to test.. ### ServerAdmin foo at earthlink.net DocumentRoot "/var/www/gforge-3.0/www" # ServerName 192.168.1.52 ServerName gforge.mesa.com Options Indexes FollowSymLinks #AllowOverride All Order allow,deny AllowOverride All Allow from all ErrorDocument 404 /404.php Order allow,deny DirectoryIndex index.php index.html index.htm index.shtml Any help/assistance/pointers would be greatly appreciated.... Thanks Bruce bedouglas at earthlink.net Hi... A mysql/Apache issue: I get the following when I'm trying to run a test web site on an Apache 2.0/RH8.0 setup. -------------------------------- Warning: Access denied for user: 'apache at localhost' (Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17 Warning: MySQL Connection Failed: Access denied for user: 'apache at localhost' (Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17 Could not connect: Access denied for user: 'apache at localhost' (Using password: YES) --------------------------------- I have added the mysql user/password to the php file. I can access mysql using the user/password from the linux command line. However, when I check mysql, I don't have an Apache user defined in the user table. Do I need to have one defined, or should the php app utilize the user/passwd/dbname that I provide in the db_connect function? I can access the phpMyAdmin application with no apparent issues/problems... A check of google indicates that the issue seems to be related to not having mysql setup for an Apache user.... As an additional question, if I have a web app that has a mysql db, do I need to allow Apache to have access to each table that the app uses...????? Any help/assitance/pointers to resolve this would be greatle appreciated... Regards, Bruce bedouglas at earthlink.net (925) 866-2790 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe at httpd.apache.org " from the digest: users-digest-unsubscribe at httpd.apache.org For additional commands, e-mail: users-help at httpd.apache.org From bedouglas at earthlink.net Wed Aug 20 12:52:35 2003 From: bedouglas at earthlink.net (bruce) Date: Wed, 20 Aug 2003 10:52:35 -0700 Subject: [thelist] [users@httpd] apache/mysql errors.... In-Reply-To: <00a701c366eb$b0ddcee0$13696964@dirsta> Message-ID: <022d01c36743$d6ea3990$0301a8c0@Mesa.com> Hi... A mysql/Apache issue: I get the following when I'm trying to run a test web site on an Apache 2.0/RH8.0 setup. -------------------------------- Warning: Access denied for user: 'apache at localhost' (Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17 Warning: MySQL Connection Failed: Access denied for user: 'apache at localhost' (Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17 Could not connect: Access denied for user: 'apache at localhost' (Using password: YES) --------------------------------- I have added the mysql user/password to the php file. I can access mysql using the user/password from the linux command line. However, when I check mysql, I don't have an Apache user defined in the user table. Do I need to have one defined, or should the php app utilize the user/passwd/dbname that I provide in the db_connect function? I can access the phpMyAdmin application with no apparent issues/problems... A check of google indicates that the issue seems to be related to not having mysql setup for an Apache user.... As an additional question, if I have a web app that has a mysql db, do I need to allow Apache to have access to each table that the app uses...????? Any help/assitance/pointers to resolve this would be greatle appreciated... Regards, Bruce bedouglas at earthlink.net (925) 866-2790 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe at httpd.apache.org " from the digest: users-digest-unsubscribe at httpd.apache.org For additional commands, e-mail: users-help at httpd.apache.org From Anthony at Baratta.com Wed Aug 20 15:09:08 2003 From: Anthony at Baratta.com (Anthony Baratta) Date: Wed, 20 Aug 2003 13:09:08 -0700 Subject: [thelist] apache/mysql errors.... In-Reply-To: <022d01c36743$d6ea3990$0301a8c0@Mesa.com> References: <00a701c366eb$b0ddcee0$13696964@dirsta> Message-ID: <5.1.0.14.2.20030820130757.040a3870@baratta.com> At 10:52 AM 8/20/2003, bruce wrote: >I have added the mysql user/password to the php file. I can access mysql >using the user/password from the linux command line. Verify that you are connecting to mySQL correctly. I appears that PHP is trying to use the default login credentials which is the Apache user. --- Anthony Baratta President Keyboard Jockeys "Conformity is the refuge of the unimaginative." From jjk3 at msstate.edu Wed Aug 20 15:29:11 2003 From: jjk3 at msstate.edu (Joel Konkle-Parker) Date: Wed, 20 Aug 2003 15:29:11 -0500 (CDT) Subject: [thelist] PHP output buffering Message-ID: <1061411351.3f43da17438f6@webmail.msstate.edu> First of all, thanks to everyone who have been helping me through this PHP learning curve, you've been a big help. I've decided to scrap file_get_contents in favor of output buffering (ob_start(), ob_get_contents(), ob_end_clean()). I've taken a working script that prints my template and added a buffered include statement that takes the output from another script and inserts it into $output. I dn't do anything with $output yet, I just leave it there. Here's a snippet: -- ob_start(); include "/directory/directory/index.original.php"; $output = ob_get_contents(); ob_end_clean(); function body() { } require "/hsphere/local/home/ballsome/template.php"; -- I put the output from index.original.php into $output, don't do anything with it in body(), and print template.php. The resulting output is perfect... if I wanted the output of index.original.php (a forum package, if you were wondering). I get the exact same result as if I called it directly in my browser, and no trace whatsoever of my template. To test, I can comment out the ob_start() block, and the result is simply template.php, a nicely-formatted webpage with no useful content. If I've been reading the ob_* documentation correctly, this simply shouldn't happen.... I've attached my actual script, and the URL in question is: http://mod.ballsome.com/forum/index.php -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] From norman.bunn at craftedsolutions.com Wed Aug 20 17:09:42 2003 From: norman.bunn at craftedsolutions.com (Norman Bunn) Date: Wed, 20 Aug 2003 18:09:42 -0400 Subject: [thelist] Maps for Commercial Web Sites In-Reply-To: <5.2.1.1.0.20030820144159.00a01ea0@pop3.norton.antivirus> References: <5.2.1.1.0.20030820122645.04245af0@craftedsolutions.com> <1061251830.452cf6ef393d5@webmail.spamcop.net> Message-ID: <5.2.1.1.0.20030820180911.01836550@craftedsolutions.com> At 02:43 PM 8/20/2003, Jorah Lavin wrote: >At 12:45 08/20/03, you wrote: >>All I really want is a graphic on a web page showing a business location >>that can be clicked for an interactive map if desired. > > Draw some simple version of a map yourself, just enough to say "map" to > the visitor, who then clicks through for the real deal. Maybe use some > clip art type of graphic that implies a map, without being a map of the > particular area? > >-Jorah Yeah, I could do that! Duh! Guess I was blinded by my earlier use of Mapquest's MapFree service that let you put static maps from their site with a link. Unfortunately, that service has been discontinued and such use violates their copyright. Norman www.CraftedSolutions.com 803-405-1008 From SCaudill at municode.com Wed Aug 20 17:12:30 2003 From: SCaudill at municode.com (Stephen Caudill) Date: Wed, 20 Aug 2003 18:12:30 -0400 Subject: [thelist] [ASP] templating system woe's Message-ID: <77025926DDD85A4D886C5B8A34E43E742D773D@exchange.internal.municode.com> Help!! I've painted myself into a corner. I have been working on a templating system for classic ASP, and just discovered I made a serious oversight. The system works fine with plain HTML. However, rather than processing the server code, it merely prints that to screen as well. Here's the meat of it: There's a function which extracts everything between the body tags and returns it as a string... which I'm then response.writing in the appropriate place within the template. Dumb, dumb, dumb. I've been kicking myself over it all afternoon. The only thing that has occurred to me is to write the contents of the to a temp file and server.execute that into place in the template, but that seems very inelegant and likely to add too much overhead to the processing (there's already a ton of FSO and RegExp...) The code works, so I haven't included it, but if someone thinks it might help, I'd be happy to provide it. Many Thanks in Advance for any help, Stephen Caudill http://www.mechavox.com/ From roselli at earthlink.net Wed Aug 20 17:16:46 2003 From: roselli at earthlink.net (aardvark) Date: Wed, 20 Aug 2003 18:16:46 -0400 Subject: [thelist] Background no-repeat In-Reply-To: <3F43BFCD.5030201@nemesis1.f2o.org> References: Message-ID: > From: Nemesis > > > How do I get a backgound not to repeat itself in all the browsers? > > You don't if you have to include NN4 for the rest use CSS > > background-repeat:no-repeat; no-repeat works in NN4.x... repeat-x or repeat-y is tricky, however... given the original requirement of *all* browsers, i can say that that isn't likely... however, to see lots of other browsers, try these support charts for the no-repeat property: Abridged CSS2 Support Chart (Mac): http://macedition.com/cb/resources/abridgedcsssupport.html WestCiv support document: http://www.westciv.com/style_master/academy/browser_support/bg _border_margin_padding.html Old DevEdge chart: http://devedge.netscape.com/library/xref/2003/css- support/css1/mastergrid.html -- my latest book project: Web Graphics for Non-Designers http://amazon.com/exec/obidos/ASIN/1904151159/evoltorg02-20 ISBN: 1904151159 From studio at dutchcelt.nl Wed Aug 20 17:41:54 2003 From: studio at dutchcelt.nl (Egor Kloos) Date: Thu, 21 Aug 2003 00:41:54 +0200 Subject: [thelist] [ot] Understanding CSS with 3 digit colors ? In-Reply-To: <3F43C2CC.4090806@nemesis1.f2o.org> Message-ID: <7FB50E2A-D35F-11D7-958A-000A27AF4846@dutchcelt.nl> Nemesis wrote: > BTW font-weight: breaks in Mac IE every weight is bold. Huh? Well I know that's not, true. I tried to recreate this on different IE versions, just to make sure, and found that it does work. Controlling font weights numerically (font-weight: 600) isn't really a good idea anyway. A few reasons why. 1. Most fonts don't have this many variations and those that do, like Multiple Master fonts, have proven to be difficult to apply without degrading the quality of the typography. That's why MM fonts often come with a couple of optimal settings. 2. Web browsers are, with one or two exceptions, pretty bad at rendering fonts. Nevermind being able to rendering the appropriate weight. And when using normal font sizes the different weights wouldn't be discernible on any screen or browser. 3. Computing a font style or weight when none is available is probably the worst solution imaginable. It always looks wrong, the font designer doesn't create a specific style or weight just for kicks. 4. Some browsers won't try to compute a weight and just select the nearest available weight. So using a numeric value becomes pointless, so to speak. W3C states that normal is the same as '400' and that bold is the same as '700'. So when you set your weight property to 600 IE for the mac 'rounds' the value up to the next available weight. Simple. This does reveal how badly the W3C and browser developers have handled fonts. Have the ever asked anybody with an ounce of typographical knowledge? And it looks like we'll be stuck in the stone ages for a while to come. Just my two bits, for what it's worth. Egor Kloos http://www.dutchcelt.nl/ From g3nic at lycos.co.uk Wed Aug 20 20:25:02 2003 From: g3nic at lycos.co.uk (Andre Genic) Date: Thu, 21 Aug 2003 02:25:02 +0100 Subject: [thelist] PHP & Accessibility Message-ID: I'm looking into accessibility, but I'm just wondering how well it can merge with PHP. Why do I ask, well I'm still a very naive with accessibility, but from what I've read so far it looks like tables (my main source of web building) are a no no? I'm sure you can tell me more on this. Thing is that I want to make sites that are viewable by all, but if tables are out? what options are open for rendering dynamically displaying information (from MySQL), and I mainly use tables for that, I'd hate to think that I've invested a lot of time learning PHP and I'd hate to think it was all for nothing. I'd really appreciate any pointers in the right direction, so I can learn more, get my facts straight and get things right etc. Apologies if this sounds really dumb. Andre. From ironmike at inav.net Wed Aug 20 20:47:42 2003 From: ironmike at inav.net (Mike Hopkins) Date: Wed, 20 Aug 2003 20:47:42 -0500 Subject: [thelist] photo usage/consent question References: <000001c36618$51858920$e8c83018@mcbain> Message-ID: <00dc01c36786$37b20cc0$e7620143@trustyii> As a former newspaper worker who sometimes had to take photos, the question as I see it is whether the guardians of your underage subjects had an expectation of privacy at this private camp on private property operated by a private organization. Since you were acting outside the scope of your employment you would generally need a release releasing YOU to use the photos publically. A release for the camp would not be sufficient. Legally, the camp has a designated, limited guardianship relationship with the chiildren and their parents. Any rights not expressly conveyed by the parents remain with them. How would you feel if I sneaked into camp and took a thousand photos of you and put them on my website? If you are underage, how would your parents feel? How would you feel if you have to look for a different job next summer? ...or need the camp directors recommendation to get that job? And yes, the public use of images of children is a VERY hot issue in some places -- not that I don't think some parents are more than a little paranoid. Mike Hopkins ironmike#inav.net <><><><><><><><><><><><><><><><><><><><><><<><><><><> > I work for a summer camp which is owned by a private organization. > Photography is nowhere in my contract. I am a counselor. I took > thousands of photos this summer, and put together a staff slideshow. I > then put this slideshow on my personal website. Some of the photos have > campers and staff members under 18 in them. I got a call from my (former > because my seasonal contract ended) boss tonight telling me to pull the > pictures. He says that I am violating laws because I don't have a > release form for public consumption of these photos. > My question is: Is my personal website a public area? From pixelmech at yahoo.com Wed Aug 20 20:51:57 2003 From: pixelmech at yahoo.com (Tom Dell'Aringa) Date: Wed, 20 Aug 2003 18:51:57 -0700 (PDT) Subject: [thelist] Canto Cumulus? Message-ID: <20030821015157.6763.qmail@web12603.mail.yahoo.com> Hi, I have a job opportunity in front of me that might include dealing with a large image database that is stored in a Cumulus database, which a company called Canto is the maker of. This is the only thing that I am not familiar with that has to do with the job. I've take a brief look at thier website but its a lot of marketing speak. Does anyone know anything about this that could give some insight? Is it good, bad, or indifferent? How is it to work with - or is it some kind of standalone system? TIA Tom ===== http://www.pixelmech.com/ :: Web Development Services http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial Case for Adopting Web Standards] "That's not art, that's just annoying." -- Squidward From aredridel at nbtsc.org Wed Aug 20 21:07:31 2003 From: aredridel at nbtsc.org (Aredridel) Date: Wed, 20 Aug 2003 20:07:31 -0600 Subject: [thelist] PHP & Accessibility In-Reply-To: References: Message-ID: <1061431651.3886.31.camel@mizar> > Thing is that I want to make sites that are viewable by all, but if tables > are out? what options are open for rendering dynamically displaying > information (from MySQL), and I mainly use tables for that, I'd hate to > think that I've invested a lot of time learning PHP and I'd hate to think it > was all for nothing. Tables aren't out, per se. They're just meant for one thing: Tabular data. Things organized, logically, in columns and cells. If you find yourself putting a sidebar in one cell, a top logo in another, and the content in a third, you know what not to do. > I'd really appreciate any pointers in the right direction, so I can learn > more, get my facts straight and get things right etc. I hope this helps. The one rule of thumb that has served me well is asking myself: What is this tag meant for? Conversely, asking myself: What is the most appropriate tag for what I'm doing? You don't use tags for what they look like. You use them for what they mean. CSS (Style Sheets) are for making the tags you use look like what you want. Ari From mindmachine at hotmail.com Wed Aug 20 21:20:56 2003 From: mindmachine at hotmail.com (Og) Date: Wed, 20 Aug 2003 22:20:56 -0400 Subject: [thelist] Canto Cumulus? References: <20030821015157.6763.qmail@web12603.mail.yahoo.com> Message-ID: Cumulus is an image management system. It is capable of storing libraries of thumbnails and image information. It can store keywords and lots of other misc information about the images. Much like a standard database you can perform searches based on criteria and create reports. I use it primarily for it's database export feature which is perfect for updating my online stock photo site. It is a standalone app as far as I know whos primary job is media organization. I purchased a copy a while back, but I don't use the more advanced features. I would be happy to look into it deeper though, if you have any issues or questions you can't get answers too. I should probably learn it back to front myself. Cheers. ----- Original Message ----- From: "Tom Dell'Aringa" To: Sent: Wednesday, August 20, 2003 9:51 PM Subject: [thelist] Canto Cumulus? > Hi, > > I have a job opportunity in front of me that might include dealing > with a large image database that is stored in a Cumulus database, > which a company called Canto is the maker of. > > This is the only thing that I am not familiar with that has to do > with the job. I've take a brief look at thier website but its a lot > of marketing speak. Does anyone know anything about this that could > give some insight? Is it good, bad, or indifferent? How is it to work > with - or is it some kind of standalone system? > > TIA > > Tom > > ===== > http://www.pixelmech.com/ :: Web Development Services > http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday! > http://www.maccaws.com/ :: Group Leader > [Making A Commercial Case for Adopting Web Standards] > > "That's not art, that's just annoying." -- Squidward > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! > From jjk3 at msstate.edu Wed Aug 20 22:43:43 2003 From: jjk3 at msstate.edu (Joel Konkle-Parker) Date: Wed, 20 Aug 2003 22:43:43 -0500 (CDT) Subject: [thelist] PHP output buffering In-Reply-To: <1061411351.3f43da17438f6@webmail.msstate.edu> References: <1061411351.3f43da17438f6@webmail.msstate.edu> Message-ID: <1061437423.3f443fef67e67@webmail.msstate.edu> Well, I've researching this output buffering thing a bit more. It seems that this snippet: -- ob_start(); require "template.php"; ob_end_clean(); -- produces no output, as expected. This snippet, however: -- ob_start(); require "other_script.php"; ob_end_clean(); -- does produce output. If I'm not mistaken, this can only happen if other_script.php contains a call to ob_end_flush(). By extension, it seems correct to say that output buffering functions aren't can cross the boundaries of an include() statement. Is this not what's happening? If it is, is there a way to stop it from happening? I want the output of other_script.php to be complete, but isolated from my wrapper script. file_get_contents($url) would work exactly the way I want, except $url depends on POST data that's being sent to my wrapper script. -- Joel Konkle-Parker Webmaster [Ballsome.com] Phone [662-518-1636] E-mail [jjk3 at msstate.edu] From dianesoini at earthlink.net Wed Aug 20 20:03:12 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Wed, 20 Aug 2003 18:03:12 -0700 Subject: [thelist] Re: thelist Digest, Vol 6, Issue 49 In-Reply-To: <200308201322.19Pzt16Tn3NZFjX0@robin> Message-ID: <3C9F257B-D373-11D7-BE35-00039358CB42@earthlink.net> I have noticed in some browsers that if you use you actually get the bold typeface of the font. In otherwords, the text isn't just heavier, it is actually different -- the bold version. Same with the tag. Don't really have a point other than just that I've noticed it. I wonder if you also get the bold typeface if you chose or the italic/oblique if you choose or ? One thing that makes markup language somewhat confusing is that it originally started out as all about semantic markup, then there arose a desire for more print-like display capabilities, now there is a desire to return to the semantic, meaningful markup. Look at any ad in a magazine. Words are not always bold, all caps or italics just because they are emphasizing, citing or whatever. Sometimes they are just styled just for the style of it. As much as some would like to return to a web that is all about semantics, there will always remain times when things look the way they do for no semantic reason at all. So why not have just for the sake of being bold and for no other reason? Sometimes you need variation on the page, not to emphasize in a meaningful way, but to give the big blob of gray text some texture. The ability to choose fonts so limited, sometimes is your simplest way to get a little variation in an otherwise bland visual display. On Wednesday, August 20, 2003, at 01:22 PM, thelist-request at lists.evolt.org wrote: > > >> If you embolden text for the sake of emboldening it, it strikes me as >> a >> visual formatting issue and not a semantic one. > > exactly > >> Thus, perhaps one should use >> (or something) instead of ? > > we've already covered this > > B is much better than SPAN in this example > > B is intended specifically for the stated purpose of emboldening text > > >> The other way to look at it would be - why would you wish to >> embolden text for no reason? > > well, i specifically said it was for a visual reason > > a visual reason is a reason > > ;o) > > rudy From pjln1 at sunmaia.net Wed Aug 20 20:29:06 2003 From: pjln1 at sunmaia.net (Peter Lovatt) Date: Thu, 21 Aug 2003 02:29:06 +0100 Subject: [thelist] RE: apache/mysql errors.... In-Reply-To: <022d01c36743$d6ea3990$0301a8c0@Mesa.com> Message-ID: HI from the command line run GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON database_name.* TO apache at localhost IDENTIFIED BY 'password'; (you may want to give more restrictive privileges) that should fix it - you don't have privileges set for the user apache Peter -----Original Message----- From: bruce [mailto:bedouglas at earthlink.net] Sent: 20 August 2003 18:53 To: mysql at lists.mysql.com; users at httpd.apache.org; thelist at lists.evolt.org Subject: apache/mysql errors.... Hi... A mysql/Apache issue: I get the following when I'm trying to run a test web site on an Apache 2.0/RH8.0 setup. -------------------------------- Warning: Access denied for user: 'apache at localhost' (Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17 Warning: MySQL Connection Failed: Access denied for user: 'apache at localhost' (Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17 Could not connect: Access denied for user: 'apache at localhost' (Using password: YES) --------------------------------- I have added the mysql user/password to the php file. I can access mysql using the user/password from the linux command line. However, when I check mysql, I don't have an Apache user defined in the user table. Do I need to have one defined, or should the php app utilize the user/passwd/dbname that I provide in the db_connect function? I can access the phpMyAdmin application with no apparent issues/problems... A check of google indicates that the issue seems to be related to not having mysql setup for an Apache user.... As an additional question, if I have a web app that has a mysql db, do I need to allow Apache to have access to each table that the app uses...????? Any help/assitance/pointers to resolve this would be greatle appreciated... Regards, Bruce bedouglas at earthlink.net (925) 866-2790 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=peter at sunmaia.net From ralph213 at sbcglobal.net Wed Aug 20 21:34:35 2003 From: ralph213 at sbcglobal.net (Ralph Guzman) Date: Wed, 20 Aug 2003 19:34:35 -0700 Subject: [thelist] PHP & Accessibility In-Reply-To: Message-ID: <009601c3678c$c2d1d640$6401a8c0@ralphxorostodu> Andre, Where did you read that tables are obsolete? Actually using tables is the only method that will ensure you accessibility through multiple platforms and browser versions. Tables are the best approach for displaying results from any database. Your other alternative is to use stylesheets, but stylesheets are only supported by newer browsers and the standard is still not consistent across multiple platforms. Ralph -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Andre Genic Sent: Wednesday, August 20, 2003 6:25 PM To: Thelist at Lists. Evolt. Org Subject: [thelist] PHP & Accessibility I'm looking into accessibility, but I'm just wondering how well it can merge with PHP. Why do I ask, well I'm still a very naive with accessibility, but from what I've read so far it looks like tables (my main source of web building) are a no no? I'm sure you can tell me more on this. Thing is that I want to make sites that are viewable by all, but if tables are out? what options are open for rendering dynamically displaying information (from MySQL), and I mainly use tables for that, I'd hate to think that I've invested a lot of time learning PHP and I'd hate to think it was all for nothing. I'd really appreciate any pointers in the right direction, so I can learn more, get my facts straight and get things right etc. Apologies if this sounds really dumb. Andre. -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From david.turner at synergy.tv Thu Aug 21 04:08:02 2003 From: david.turner at synergy.tv (David Turner) Date: Thu, 21 Aug 2003 10:08:02 +0100 Subject: [thelist] trying two passwords in ASP vbscript Message-ID: Hi all, to allow my sql password to change, i am having to code in the old, and then the new password, so i am using an On Error Resume Next line. I am not sure if i have done this propertly though, could someone advise if there is a neater or a preferred solution. code follows.... cheers, david. ---------------------------- Sub DBConnect On Error Resume Next Set Database_Connection = Server.CreateObject("ADODB.Connection") ' try old password ' Database_Connection.Open "Driver={SQL Server};Server=sql.mywebsite.com;Database=db;UID=db;PWD=old_password" ' and then the new password ' Database_Connection.Open "Driver={SQL Server};Server=sql.mywebsite.com;Database=db;UID=db;PWD=new_password" End Sub ---------------------------- *************************************** Email: david.turner at synergy.tv MSN ID: david_synergy at hotmail.com Tel: +44 (0) 113 246 9989 Addr: 30-34 Aire Street, Leeds, LS1 4HT www.synergy.tv *************************************** ____________________________________________________________________________ __ This e-mail is sent on behalf of Synergy Project Ltd trading as Synergy.TV (www.Synergy.tv) Its contents are confidential to the intended recipient and may be legally privileged. If you are not the intended recipient: (1) you must not disclose, copy or distribute its contents to any other person nor use its contents in any way; (2) please contact Synergy.TV immediately on +44 (0)113 246 9989 quoting the name of the sender and the addressee then delete it from your system. Synergy.TV has scanned this e-mail for viruses but does not accept any responsibility for viruses once this e-mail has been transmitted. You should scan attachments (if any) for viruses. _________________________________________________________________________ From andy at message.uk.com Thu Aug 21 04:14:43 2003 From: andy at message.uk.com (Andy Budd) Date: Thu, 21 Aug 2003 10:14:43 +0100 Subject: [thelist] PHP & Accessibility In-Reply-To: Message-ID: Don't get too hung up with tables. Ideally we'd all be using CSS to style our pages but until browsers catch up it's reasonable to create hybrid pages using a combination of simple tables and CSS. The problem with tables in relation to accessibility is twofold. Firstly tables must make sense when linearized. So don't put a bunch of headings in one row and their content in another (unless it's tabular data). When the page is read in a linear way the titles will be disassociated with the text they are relating to so the page wont make sense. Also don't use things like and to get round this problem as these are purely used to make tabular data more accessible. To be honest most screen readers handle simple tables pretty well. However most screen readers choke on complex and especially nested table layouts. So if you're going to use tables, keep them simple, try not to nest and make sure they make sense when linearized. Oh, and don't worry about PHP. It has nothing to do with accessibility. It just spits out HTML. As long as you make it spit out accessible HTML you'll be OK. Andre Genic wrote: > I'm looking into accessibility, but I'm just wondering how well it can > merge > with PHP. > > Why do I ask, well I'm still a very naive with accessibility, but from > what > I've read so far it looks like tables (my main source of web building) > are a > no no? I'm sure you can tell me more on this. > > Thing is that I want to make sites that are viewable by all, but if > tables > are out? what options are open for rendering dynamically displaying > information (from MySQL), and I mainly use tables for that, I'd hate to > think that I've invested a lot of time learning PHP and I'd hate to > think it > was all for nothing. > > I'd really appreciate any pointers in the right direction, so I can > learn > more, get my facts straight and get things right etc. > > Apologies if this sounds really dumb. > > Andre. From andy at message.uk.com Thu Aug 21 04:26:00 2003 From: andy at message.uk.com (Andy Budd) Date: Thu, 21 Aug 2003 10:26:00 +0100 Subject: [thelist] PHP & Accessibility In-Reply-To: <009601c3678c$c2d1d640$6401a8c0@ralphxorostodu> Message-ID: <7A5AF9A0-D3B9-11D7-BC9B-003065480AC6@message.uk.com> Ralph Guzman wrote: > Andre, > > Where did you read that tables are obsolete? Um, the WC3? Tables are really only intended for tabular data and not layout. > Actually using tables is > the only method that will ensure you accessibility through multiple > platforms and browser versions. What a load of rubbish. > Tables are the best approach for > displaying results from any database. For tabular data true, but not for regular content. > Your other alternative is to use stylesheets, but stylesheets are only > supported by newer browsers and the standard is still not consistent > across multiple platforms. Well, most version 5 browsers (which incidentally are a good couple of years old now) have good CSS support. Version 4 browsers CSS support is sketchy but it's fairly simple to serve them a simplified version of your stylesheets so the content is accessible. Pages using stylesheets are more accessible by default because the style and content are separated. Screen readers can just read the content in a linear and structured manner and don't have to wade though complicated tables trying to make sense of the order. It's fine to use simple tables but to say that "using tables is the only method that will ensure you accessibility through multiple platforms and browser versions." seems to show a deep misunderstanding of both accessibility, web standards and CSS. From ralph at nqionline.com Thu Aug 21 04:59:51 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Thu, 21 Aug 2003 02:59:51 -0700 Subject: [thelist] PHP & Accessibility In-Reply-To: <7A5AF9A0-D3B9-11D7-BC9B-003065480AC6@message.uk.com> Message-ID: <00ac01c367ca$f72dbb50$6401a8c0@ralphxorostodu> What was I thinking? I'm converting to stylesheets. :-) -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Andy Budd Sent: Thursday, August 21, 2003 2:26 AM To: thelist at lists.evolt.org Subject: Re: [thelist] PHP & Accessibility Ralph Guzman wrote: > Andre, > > Where did you read that tables are obsolete? Um, the WC3? Tables are really only intended for tabular data and not layout. > Actually using tables is > the only method that will ensure you accessibility through multiple > platforms and browser versions. What a load of rubbish. > Tables are the best approach for > displaying results from any database. For tabular data true, but not for regular content. > Your other alternative is to use stylesheets, but stylesheets are only > supported by newer browsers and the standard is still not consistent > across multiple platforms. Well, most version 5 browsers (which incidentally are a good couple of years old now) have good CSS support. Version 4 browsers CSS support is sketchy but it's fairly simple to serve them a simplified version of your stylesheets so the content is accessible. Pages using stylesheets are more accessible by default because the style and content are separated. Screen readers can just read the content in a linear and structured manner and don't have to wade though complicated tables trying to make sense of the order. It's fine to use simple tables but to say that "using tables is the only method that will ensure you accessibility through multiple platforms and browser versions." seems to show a deep misunderstanding of both accessibility, web standards and CSS. -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From pradheep at naturesoft.net Thu Aug 21 15:26:46 2003 From: pradheep at naturesoft.net (pradheep) Date: Thu, 21 Aug 2003 16:26:46 -0400 Subject: [thelist] Pradheep :: [Headers] Message-ID: <3F452B06.8080707@naturesoft.net> hi how do i download a particular file type in a simple html file without serverside scripting. i am not sure whether i can use headers. do tell me, its urgent.!!1 -- \\\|/// \\ ~ ~ // ( @ @ ) -----o00o-(_)-o00o----- c ya PraDheep mobile: 98400 16769 home: 26266317 work: 24617193 -----------0ooo.----- .ooo0 ( ) ( ) ) / \ ( (_/ \_) From roselli at earthlink.net Thu Aug 21 06:50:37 2003 From: roselli at earthlink.net (aardvark) Date: Thu, 21 Aug 2003 07:50:37 -0400 Subject: [thelist] trying two passwords in ASP vbscript In-Reply-To: Message-ID: <3F4479CD.25119.CA5E07F@localhost> > From: "David Turner" [...] > to allow my sql password to change, i am having to code in the old, > and then the new password, so i am using an On Error Resume Next line. > > I am not sure if i have done this propertly though, could someone > advise if there is a neater or a preferred solution. [...] use a global variable set in an include file where you establish all your constants... then when you upload it, just uncomment the code that sets your uid/pwd to the production db and comment out the code that sets it to the test db... if you don't want to have to change it, use the values from the server variables request object to determine which to use based on the name of the serverdomain name... that help? -- yet another book: The Web Professional's Handbook http://roselli.org/adrian/books/handbook.asp ISBN: 1904151221 From roselli at earthlink.net Thu Aug 21 07:04:31 2003 From: roselli at earthlink.net (aardvark) Date: Thu, 21 Aug 2003 08:04:31 -0400 Subject: [thelist] Pradheep :: [Headers] In-Reply-To: <3F452B06.8080707@naturesoft.net> Message-ID: <3F447D0F.1153.CB29A3B@localhost> > From: pradheep [...] > how do i download a particular file type in a simple html file without > serverside scripting. i am not sure whether i can use headers. do tell > me, its urgent.!!1 -- not much to go on here, pradheep... are you trying to allow someone to download a .doc file, for example, but find it keeps opening in the browser? through a simple
download link, right? couple options... 1. wrap the file up in a .zip archive... that usually prompts users to download... you could also just change the extension to something else browsers don't know and tell users to change it back, but that's too much of a hassle... 2. change your mime type for a particular file (like .doc) to application/octet-stream... test it to be sure it works... this is a header change, and without knowing your server, i can't tell you any more than that... -- yet another book: The Web Professional's Handbook http://roselli.org/adrian/books/handbook.asp ISBN: 1904151221 From SCaudill at municode.com Thu Aug 21 07:12:58 2003 From: SCaudill at municode.com (Stephen Caudill) Date: Thu, 21 Aug 2003 08:12:58 -0400 Subject: [thelist] [ASP] templating system woe's Message-ID: <77025926DDD85A4D886C5B8A34E43E7420BD06@exchange.internal.municode.com> Stephen Caudill on Wednesday, August 20, 2003 6:13 PM said: : Help!! : I've painted myself into a corner. I have been working on a : templating system for classic ASP, and just discovered I made a : serious oversight. The system works fine with plain HTML. : However, rather than processing the server code, it merely prints : that to screen as well. Here's the meat of it: There's a : function which extracts everything between the body tags and : returns it as a string... which I'm then response.writing in the : appropriate place within the template. Dumb, dumb, dumb. I've : been kicking myself over it all afternoon. The only thing that : has occurred to me is to write the contents of the to a : temp file and server.execute that into place in the template, but : that seems very inelegant and likely to add too much overhead to : the processing (there's already a ton of FSO and RegExp...) The : code works, so I haven't included it, but if someone thinks it : might help, I'd be happy to provide it. : : Many Thanks in Advance for any help, : Stephen Caudill : http://www.mechavox.com/ I *really* need some help on this one. Or, if someone can definitively tell me I'm daft, that'll work too. In a nutshell, I have data in a string that has been extracted from a page using FSO. That data needs to be processed by the server (some straight html, some server code). response.writing it doesn't work. What are my alternatives? It sounds like Output Buffering for PHP might do what I'm looking for. Is there an ASP equivalent? Thanks Again, Stephen Caudill http://www.mecahvox.com/ From pradheep at naturesoft.net Thu Aug 21 16:51:24 2003 From: pradheep at naturesoft.net (pradheep) Date: Thu, 21 Aug 2003 17:51:24 -0400 Subject: [thelist] Pradheep :: [Headers] In-Reply-To: <3F447D0F.1153.CB29A3B@localhost> References: <3F447D0F.1153.CB29A3B@localhost> Message-ID: <3F453EDC.3030307@naturesoft.net> aardvark i need this to be done in client side HTML itself. regards Pradheep aardvark wrote: >>From: pradheep >> >> >[...] > > >>how do i download a particular file type in a simple html file without >>serverside scripting. i am not sure whether i can use headers. do tell >>me, its urgent.!!1 -- >> >> > >not much to go on here, pradheep... > >are you trying to allow someone to download a .doc file, for example, >but find it keeps opening in the browser? through a simple href="filename.ext">download link, right? > >couple options... > >1. wrap the file up in a .zip archive... that usually prompts users >to download... you could also just change the extension to something >else browsers don't know and tell users to change it back, but that's >too much of a hassle... > >2. change your mime type for a particular file (like .doc) to >application/octet-stream... test it to be sure it works... this is a >header change, and without knowing your server, i can't tell you any >more than that... > > > -- \\\|/// \\ ~ ~ // ( @ @ ) -----o00o-(_)-o00o----- c ya PraDheep mobile: 98400 16769 home: 26266317 work: 24617193 -----------0ooo.----- .ooo0 ( ) ( ) ) / \ ( (_/ \_) From mikek at brightstorm.co.uk Thu Aug 21 07:21:13 2003 From: mikek at brightstorm.co.uk (mike karthauser) Date: Thu, 21 Aug 2003 13:21:13 +0100 Subject: [thelist] Pradheep :: [Headers] In-Reply-To: <3F453EDC.3030307@naturesoft.net> Message-ID: on 21/8/03 10:51 pm, pradheep at pradheep at naturesoft.net wrote: > i need this to be done in client side HTML itself. You will need to zip it then. Without server side tweaks you'll not stop m$ opening docs in your browser window. You could try a self extracting archive so your punters don?t need winzip. The only downside is how keen your peeps are to download an exe. -- Mike Karthauser Managing Director - Brightstorm Ltd Email >> mikek at brightstorm.co.uk Web >> http://www.brightstorm.co.uk Tel >> 0117 9426653 (office) 07939 252144 (mobile) Snailmail >> Unit 8, 14 King Square, Bristol BS2 8JJ From joshua at waetech.com Thu Aug 21 07:24:48 2003 From: joshua at waetech.com (Joshua Olson) Date: Thu, 21 Aug 2003 08:24:48 -0400 Subject: [thelist] [ASP] templating system woe's References: <77025926DDD85A4D886C5B8A34E43E742D773D@exchange.internal.municode.com> Message-ID: <098a01c367df$3c22afe0$0300a8c0@client1> ----- Original Message ----- From: "Stephen Caudill" Sent: Wednesday, August 20, 2003 6:12 PM > I've painted myself into a corner. I have been working on a templating system > for classic ASP, and just discovered I made a serious oversight. The system > works fine with plain HTML. However, rather than processing the server code, > it merely prints that to screen as well. Here's the meat of it: There's a > function which extracts everything between the body tags and returns it as a > string... which I'm then response.writing in the appropriate place within the > template. > Dumb, dumb, dumb. No, not really. Just follow your idea through. > I've been kicking myself over it all afternoon. The only > thing that has occurred to me is to write the contents of the to a temp > file and server.execute that into place in the template, but that seems very > inelegant and likely to add too much overhead to the processing (there's already > a ton of FSO and RegExp...) Not too bad of a solution given the scenario. In regards to overhead, do think about how much traffic the site is likely to generate before getting too worried. One nice benefit to this method is that you could concievable cache the pages to disk and only overwrite them if the database record is updated. Comparing the datestamp of the record against the datestamp of the file should give you this info. The question you need to ask yourself is whether this method creates a security risk for the content. If you can place executable script into the database (and presumably someone has the opportunity to change the code) then you open up potential points through which someone could damage the site or the server or server farm (ugh). > The code works, so I haven't included it, but if someone thinks it might help, > I'd be happy to provide it. No need... go with your gut. <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168 From roselli at earthlink.net Thu Aug 21 07:29:25 2003 From: roselli at earthlink.net (aardvark) Date: Thu, 21 Aug 2003 08:29:25 -0400 Subject: [thelist] Pradheep :: [Headers] In-Reply-To: <3F453EDC.3030307@naturesoft.net> References: <3F447D0F.1153.CB29A3B@localhost> Message-ID: <3F4482E5.3077.CC9643E@localhost> > From: pradheep > > aardvark > i need this to be done in client side HTML itself. then go with option 1... -- yet another book: The Web Professional's Handbook http://roselli.org/adrian/books/handbook.asp ISBN: 1904151221 From pradheep at naturesoft.net Thu Aug 21 17:14:29 2003 From: pradheep at naturesoft.net (pradheep) Date: Thu, 21 Aug 2003 18:14:29 -0400 Subject: [thelist] Pradheep :: [Headers] In-Reply-To: <3F4482E5.3077.CC9643E@localhost> References: <3F447D0F.1153.CB29A3B@localhost> <3F4482E5.3077.CC9643E@localhost> Message-ID: <3F454445.8010200@naturesoft.net> Aardvark i need to download a .txt format file for a particular page only. Regards Pradheep aardvark wrote: >>From: pradheep >> >>aardvark >>i need this to be done in client side HTML itself. >> >> > >then go with option 1... > > > > -- \\\|/// \\ ~ ~ // ( @ @ ) -----o00o-(_)-o00o----- c ya PraDheep mobile: 98400 16769 home: 26266317 work: 24617193 -----------0ooo.----- .ooo0 ( ) ( ) ) / \ ( (_/ \_) From roselli at earthlink.net Thu Aug 21 08:18:11 2003 From: roselli at earthlink.net (aardvark) Date: Thu, 21 Aug 2003 09:18:11 -0400 Subject: [thelist] Pradheep :: [Headers] In-Reply-To: <3F454445.8010200@naturesoft.net> References: <3F4482E5.3077.CC9643E@localhost> Message-ID: <3F448E53.10324.CF6094B@localhost> then go with option 1... obviously make sure your users can handle it... > From: pradheep > > i need to download a .txt format file for a particular page only. > >> > >>i need this to be done in client side HTML itself. > > > >then go with option 1... -- yet another book: The Web Professional's Handbook http://roselli.org/adrian/books/handbook.asp ISBN: 1904151221 From Tab.Alleman at MetroGuide.com Thu Aug 21 08:41:10 2003 From: Tab.Alleman at MetroGuide.com (Tab Alleman) Date: Thu, 21 Aug 2003 09:41:10 -0400 Subject: [thelist] trying two passwords in ASP vbscript Message-ID: David Turner wrote: > Sub DBConnect > > On Error Resume Next > Set Database_Connection = Server.CreateObject("ADODB.Connection") > > ' try old password > ' > Database_Connection.Open "Driver={SQL > Server};Server=sql.mywebsite.com;Database=db;UID=db;PWD=old_password" > > ' and then the new password > ' > Database_Connection.Open "Driver={SQL > Server};Server=sql.mywebsite.com;Database=db;UID=db;PWD=new_password" > > End Sub Have you tested it yet? It seems like this code wouldn't work until your password changed, because you'd open a good connection with your old password, and then you'd overwrite that connection (because you're using the same variable name for the connection object) with a connection that won't work (new password). You might need to: Open connection with old password IF Err.Number <> 0 THEN Open connection with new password END IF From david.turner at synergy.tv Thu Aug 21 08:44:55 2003 From: david.turner at synergy.tv (David Turner) Date: Thu, 21 Aug 2003 14:44:55 +0100 Subject: [thelist] trying two passwords in ASP vbscript In-Reply-To: <3F4479CD.25119.CA5E07F@localhost> Message-ID: not really... the problem is that my isp is going to change the SQL password for 1 site, but i dont know exactly when, and i dont want any down time. so i want the code to try the old SQL password, and if that fails, it should try the new SQL password. my code before was actually wrong, i have modified it to. ------- Sub DBConnect On Error Resume Next Set Database_Connection = Server.CreateObject("ADODB.Connection") ' first try old password ' Database_Connection.Open "Driver={SQLServer};Server=sql.mywebsite.com;Database=db;UID=db;PWD=old_pass word" ' if we get an error then try the new password ' if Database_Connection.Errors.Count > 0 then Database_Connection.Errors.Clear Database_Connection.Open "Driver={SQLServer};Server=sql.mywebsite.com;Database=db;UID=db;PWD=new_pass word" End if End Sub ------- thanks david. -----Original Message----- From: thelist-bounces at lists.evolt.org use a global variable set in an include file where you establish all your constants... then when you upload it, just uncomment the code that sets your uid/pwd to the production db and comment out the code that sets it to the test db... if you don't want to have to change it, use the values from the server variables request object to determine which to use based on the name of the serverdomain name... that help? -- From joshua at waetech.com Thu Aug 21 09:17:08 2003 From: joshua at waetech.com (Joshua Olson) Date: Thu, 21 Aug 2003 10:17:08 -0400 Subject: [thelist] [MS SQL Trickery] Is my technique good, bad, or neither? Message-ID: <09ca01c367ee$e7cd88b0$0300a8c0@client1> Hi Listers... I need an opinion here. I just found a solution to a problem using what I consider trickery and I want to see if anyone knows WHY I shouldn't do it. I have a multi-language application in development. There are two tables for each item. One table holds the non-presentational information (pk, date, data, etc) and another table that holds the presentational information for each item for every available language. This is a typical one-to-many setup. I wanted to be able to assign a default language to the system as a fail-over just in case an item didn't have text for a particular language. I decided I wanted to create a view that would contain only the items table joined with the default language's records in the supporting table. I also decided that they should be able to change the default language whenever they wanted to. So, instead of programmatically rewriting the view every time they wanted to change the default language, I instead created a UDF and based the view definition on it... example: CREATE FUNCTION dbo.getDefaultLanguage () RETURNS int AS BEGIN RETURN 11 END CREATE VIEW dbo.view_items_default_language AS SELECT item.field1 , item.field2 , ... , item.fieldX , item_language.name , item_language.description FROM dbo.item INNER JOIN dbo.item_language ON dbo.item_language.language_id = dbo.getDefaultLanguage() AND dbo.item_language.item_id = dbo.item.id I checked the validity of my solution by programmatically updating the UDF and rerunning the view and it *seemed* to work without hiccups. Any thoughts as to whether this is a good idea or not? TIA, <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168 From hans at hartenhans.op.het.net Thu Aug 21 05:06:07 2003 From: hans at hartenhans.op.het.net (Hans van Harten) Date: Thu, 21 Aug 2003 12:06:07 +0200 Subject: [thelist] Re: [users@httpd] apache/mysql errors.... References: <022d01c36743$d6ea3990$0301a8c0@Mesa.com> Message-ID: <024401c367cb$d6afbfd0$0201a8c0@triangle.local> bruce wrote: > We have the following setup in our httpd.conf file. We've tried to > give what's related to the issue. We're trying to set up a virtual > host for a test project. The behavior that we're seeing is that we > can type: > http://foo.com but the url that gets displayed is > http://12.x.x.x where 12.x.x.x is the address of the external router > (foo.com is the internal IP of the Internal machine. The machine is > behind a linksys router.) > The following information is from the httpd.conf file: > Listen 80 > ServerName 192.168.1.52 > UseCanonicalName on Use OFF: http://httpd.apache.org/docs-2.0/mod/core.html#usecanonicalname "With UseCanonicalName Off Apache will form self-referential URLs using the hostname and port supplied by the client if any are supplied (otherwise it will use the canonical name, as defined above). These values are the same that are used to implement name based virtual hosts, and are available with the same clients. The CGI variables SERVER_NAME and SERVER_PORT will be constructed from the client supplied values as well." AFAIK the request to foo.com gets translated to ServerName by Apache -only on manipulated requests or through scripts-. ServerName, being an IP, is properly translated by your router to enable public access. Bar in mind though, if more than one virtual host share a single IP (and port), the incoming request is non-conclusive ... HansH From amaria at snb.psi.soft.net Thu Aug 21 09:09:36 2003 From: amaria at snb.psi.soft.net (Aloysius.M.S) Date: Thu, 21 Aug 2003 19:39:36 +0530 Subject: [thelist] need a help Message-ID: <000001c367ed$ebf64040$d3c819ac@psidata.net> hi, In my application i am in need of remaining time left in current session( remaining time left in IIS session.timeout), is there any way to get this, if so kindly inform me how to get that thanks for time and consideration regards R.Aloysius From SCaudill at municode.com Thu Aug 21 09:29:15 2003 From: SCaudill at municode.com (Stephen Caudill) Date: Thu, 21 Aug 2003 10:29:15 -0400 Subject: [thelist] [ASP] templating system woe's Message-ID: <77025926DDD85A4D886C5B8A34E43E742D7741@exchange.internal.municode.com> Joshua Olson on Thursday, August 21, 2003 8:25 AM said: : ----- Original Message ----- : From: "Stephen Caudill" : Sent: Wednesday, August 20, 2003 6:12 PM : :: I've been kicking myself over it all afternoon. The only :: thing that has occurred to me is to write the contents of the :: to a temp file and server.execute that into place in the :: template, but that seems very inelegant and likely to add too :: much overhead to the processing (there's already a ton of FSO :: and RegExp...) : : Not too bad of a solution given the scenario. In regards to : overhead, do think about how much traffic the site is likely to : generate before getting too worried. One nice benefit to this : method is that you could concievable cache the pages to disk and : only overwrite them if the database record is updated. Comparing : the datestamp of the record against the datestamp of the file : should give you this info. This is a rewrite of the templating engine currently in place for http://www.municode.com/ which receives around 10k visitors a day give or take a couple grand... so the overhead is definitely an issue. I hadn't thought about caching the pages to disk, though. Nor do I have any experience with it. Seems viable, but still invokes a strond sense of "wrongness". : The question you need to ask yourself is whether this method : creates a security risk for the content. If you can place : executable script into the database (and presumably someone has : the opportunity to change the code) then you open up potential : points through which someone could damage the site or the server : or server farm (ugh). hmmm... I don't think this is a problem, but am not sure I understand what you're saying. Do you mean something on the order of an SQL injection? If so, I've put a good deal of safe-guards in place to handle that sort of attack... If not, then I don't follow you. I'm still at a total loss as to how to proceed... I really wish there was an equivalent of PHP's output buffering. :( No Joy. - Stephen http://www.mechavox.com/ From scsmith at tamu.edu Thu Aug 21 09:41:40 2003 From: scsmith at tamu.edu (Stephanie Smith) Date: Thu, 21 Aug 2003 09:41:40 -0500 Subject: [thelist] search on a CD Message-ID: <93569510-D3E5-11D7-9C31-0003939EE2A6@tamu.edu> I need to put a site search on a CD. (Ugh.) I searched the archives and came up with this: http://lists.evolt.org/archive/Week-of-Mon-20030428/140071.html ... which is basically a couple of people saying they were going to try this Javascript indexer: http://www.marcreed.com/projects/search_indexer/tutorial/ Did it work for you guys? Does anyone feel like recommending anything else? TIA.... Stephanie C. Smith Web Communications Specialist TAMUS Health Science Center http://www.tamushsc.edu/ scsmith at tamu.edu From Tab.Alleman at MetroGuide.com Thu Aug 21 09:58:13 2003 From: Tab.Alleman at MetroGuide.com (Tab Alleman) Date: Thu, 21 Aug 2003 10:58:13 -0400 Subject: [thelist] [MS SQL Trickery] Is my technique good, bad, or neither? Message-ID: Joshua Olson wrote: > I also decided that they should be able to change the default language > whenever they wanted to. So, instead of programmatically rewriting Who is "they"? If I'm understanding you, you've got a program that re-writes your UDF and changes the "11" to something else. So no matter what, there's always one default language, but someone can run your program and change what that default language is. Knowing only what I know about the other dynamics of your situation, I'm thinking how much cooler would it be to have a Users table, with a column for DefaultLanguage. The UDF queries the user table to get the default language for that user, or maybe you don't even need a UDF and just do a straight query. If it only starts with one user and the one column, it may seem like a waste, but it's a scalable waste. :) So what's to stop "them" from choosing a default language that ..um.. that an item that they want to view doesn't have text in (ugh)? Is there a core set of languages (or maybe only one language) that definitely is available for every field of every item? If so, do you limit the choice of default language to those core languages only? Maybe you could set up some sort of cascade (if the first choice of language isn't available, try the second choice...etc...). Hope something in there helps a little! T From chris at ecleanuk.com Thu Aug 21 10:06:45 2003 From: chris at ecleanuk.com (Chris Marsh) Date: Thu, 21 Aug 2003 16:06:45 +0100 Subject: [thelist] need a help In-Reply-To: <000001c367ed$ebf64040$d3c819ac@psidata.net> Message-ID: <000001c367f5$d7025a90$0e00a8c0@winsvr200301> > In my application i am in need of remaining time left in > current session( remaining time left in IIS session.timeout), > is there any way to get this, if so kindly inform me how to > get that thanks for time and consideration Response.Write Session.TimeOut will show you what the session timeout is set to in minutes. The session will only timeout after time equal to this setting has elapsed with no activity, making it extremely difficult to ascertain how much more inactive time is left before session timeout occurs without any activity within session scope. May I ask why you need to do this? Is there an alternative? Regards Chris Marsh From Anthony at Baratta.com Thu Aug 21 10:19:48 2003 From: Anthony at Baratta.com (Anthony Baratta) Date: Thu, 21 Aug 2003 08:19:48 -0700 Subject: [thelist] need a help In-Reply-To: <000001c367ed$ebf64040$d3c819ac@psidata.net> Message-ID: <5.1.0.14.2.20030821081738.035dfec8@baratta.com> At 07:09 AM 8/21/2003, Aloysius.M.S wrote: > In my application i am in need of remaining time left in current >session( remaining time left in IIS session.timeout), is there any way to >get this, if so kindly inform me how to get that >thanks for time and consideration Why? On the server side, each time they hit a page the Session Timer resets and you can't force a page to a browser that is not requested. On the client side, they can't reconnect to the server without resetting the Session Timer. Now on the client side you could use Javascript to estimate the time out. It won't be perfect, but it should be close enough. -- Anthony Baratta President Keyboard Jockeys "Conformity is the refuge of the unimaginative." From camato1 at gl.umbc.edu Thu Aug 21 10:35:32 2003 From: camato1 at gl.umbc.edu (Cheryl Amato) Date: Thu, 21 Aug 2003 11:35:32 -0400 (EDT) Subject: [thelist] winmail.dat Message-ID: Occassionally I have a problem w/ email attachment. I work on a Mac & often when people working on PCs send me attachments I receive them with the winmail.dat extension & can't open them up. I've always thoiught it was something in the way their email was set up but don't know that for sure. Is there something I can do on my machine that will let me open them up? Or a setting on their machine? Normally I use Pine to read email but have even tried forwarding the email to web-based account w/ the same results. Any suggestions? tia Cheryl Amato From Anthony at Baratta.com Thu Aug 21 10:46:56 2003 From: Anthony at Baratta.com (Anthony Baratta) Date: Thu, 21 Aug 2003 08:46:56 -0700 Subject: [thelist] [ASP] templating system woe's In-Reply-To: <77025926DDD85A4D886C5B8A34E43E742D7741@exchange.internal.m unicode.com> Message-ID: <5.1.0.14.2.20030821083941.035e40c0@baratta.com> Here's a bit of testing info: If you wrap all your HTML in response.write you can use the Server.Execute function. Caveat One: You can not embed <%%> in the text being executed. Caveat Two: You can not embed raw HTML in the text being executed. I hope this helps, or at least does not hurt. e.g. This works: <% varTest="Response.Write ""This is a succesful test.""" & vbCRLF &_ "varBlah = 5" & vbCRLF &_ "Response.Write ""
test
""" & vbCRLF &_ "Response.Write varBlah" execute varTest %> e.g . This will not work: <% varTest="<%Response.Write ""This is a succesful test.""" & vbCRLF &_ "varBlah = 5" & vbCRLF &_ "Response.Write ""
test
""" & vbCRLF &_ "Response.Write varBlah%>" execute varTest %> e.g . This will not work either: <% varTest="Response.Write ""This is a succesful test.""" & vbCRLF &_ "varBlah = 5" & vbCRLF &_ "
test
" & vbCRLF &_ "Response.Write varBlah" execute varTest %> -- Anthony Baratta President Keyboard Jockeys "Conformity is the refuge of the unimaginative." From Anthony at Baratta.com Thu Aug 21 10:46:56 2003 From: Anthony at Baratta.com (Anthony Baratta) Date: Thu, 21 Aug 2003 08:46:56 -0700 Subject: [thelist] [ASP] templating system woe's In-Reply-To: <77025926DDD85A4D886C5B8A34E43E742D7741@exchange.internal.m unicode.com> Message-ID: <5.1.0.14.2.20030821083941.035e40c0@baratta.com> Here's a bit of testing info: If you wrap all your HTML in response.write you can use the Server.Execute function. Caveat One: You can not embed <%%> in the text being executed. Caveat Two: You can not embed raw HTML in the text being executed. I hope this helps, or at least does not hurt. e.g. This works: <% varTest="Response.Write ""This is a succesful test.""" & vbCRLF &_ "varBlah = 5" & vbCRLF &_ "Response.Write ""
test
""" & vbCRLF &_ "Response.Write varBlah" execute varTest %> e.g . This will not work: <% varTest="<%Response.Write ""This is a succesful test.""" & vbCRLF &_ "varBlah = 5" & vbCRLF &_ "Response.Write ""
test
""" & vbCRLF &_ "Response.Write varBlah%>" execute varTest %> e.g . This will not work either: <% varTest="Response.Write ""This is a succesful test.""" & vbCRLF &_ "varBlah = 5" & vbCRLF &_ "
test
" & vbCRLF &_ "Response.Write varBlah" execute varTest %> -- Anthony Baratta President Keyboard Jockeys "Conformity is the refuge of the unimaginative." From g3nic at lycos.co.uk Thu Aug 21 11:09:41 2003 From: g3nic at lycos.co.uk (Andre Genic) Date: Thu, 21 Aug 2003 17:09:41 +0100 Subject: [thelist] RE: PHP & Accessibility In-Reply-To: <20030821110116.3C1136FB6D@lmin05.st1.spray.net> Message-ID: Thanks for the suggestions so far, as for why I raised this subject, I've been reading with interest about accessibility via .NET a UK internet mag, whether they are spicing things up to create a sort of panic I don't know. This is just one of s stream of articles they have been running for several months. Article as follows: (page 18 in the September issue) RNIB sues sites "Beware the Disability Discrimination Act" The RNIB has announced that it is helping visually impaired people to sue inaccessible sites - a development that should make e-commerce site owners sit up and take notice. Since 1996, it's been illegal for firms to treat disabled people unfairly, and it was confirmed in 2002 that the law - the Disability Discrimination Act, or DDA - applies to online services, too. So far, no UK sites have been sued, but that has changed: In early July, the RNIB confirmed that it is supporting a number of individuals in their legal cases against firms that have failed to make their sites accessible for visually impaired users. www.rnib.org.uk As for the tables I use to display data, they are a mess, and I mean a mess, perhaps it's time I dabbled with CSS to generate tables, perhaps there should be some clear definitions and guidelines for developers and I mean in a definitive way, perhaps their is already, and I've completely missed it. But I would sooner make sites that are accessible, there would be nothing worse than getting a big client, developing their site, only for them to get sued, after all it all comes back to the developer. Andre. P.S. Is there any sites you can think of off hand that are 100% accesible, links would be greatly appreciated. From steveedge at comcast.net Thu Aug 21 11:48:40 2003 From: steveedge at comcast.net (Steve Edge) Date: Thu, 21 Aug 2003 12:48:40 -0400 Subject: [thelist] Re: trying to set up a virtual host for a test project. In-Reply-To: <0HJY00FGTC6KPP@mtain01.icomcast.net> Message-ID: On 8/21/03 12:23 AM, "thelist-request at lists.evolt.org" wrote: > Bruce, You may have more than one issue. You could have a path problem in your > httpd.conf file. You could also have a problem mapping through the router. If > no one else offers a (better) fix for you, send me an e-mail and I will send > you a copy of a working vhost httpd.conf file. > In your router, make sure that your http request are routed to the proper > machine. In your linksys setup screen find the tab that allows you to map > private ports to public ports, tab may be called port mapping, I can?t > remember, it?s named all sorts of things by different manufacturers. Anyway, > set private ip to the proper machine?s local ip address, type to TCP, and > leave the ports at 80 which is usually default. Good luck, -- Steve Edge EDGE MULTIMEDIA DESIGN http://www.edgemultimedia.biz steveedge at comcast.net From norman.bunn at craftedsolutions.com Thu Aug 21 12:23:52 2003 From: norman.bunn at craftedsolutions.com (Norman Bunn) Date: Thu, 21 Aug 2003 13:23:52 -0400 Subject: [thelist] winmail.dat In-Reply-To: Message-ID: <5.2.1.1.0.20030821132202.017f1228@craftedsolutions.com> At 11:35 AM 8/21/2003, you wrote: >Occassionally I have a problem w/ email attachment. I work on a Mac & >often when people working on PCs send me attachments I receive them with >the winmail.dat extension & can't open them up. I've always thoiught it >was something in the way their email was set up but don't know that for >sure. Is there something I can do on my machine that will let me open them >up? Or a setting on their machine? Normally I use Pine to read email but >have even tried forwarding the email to web-based account w/ the same >results. Any suggestions? > >tia >Cheryl Amato Cheryl, This is a problem when email is sent from MS Outlook in Rich Text Format. If the sender will change the setting to "Plain Text", then the attachments will show and the winmail.dat files will disappear. Norman www.CraftedSolutions.com 803-405-1008 From scott at enteractiontv.com Thu Aug 21 12:27:46 2003 From: scott at enteractiontv.com (Scott Harman) Date: Thu, 21 Aug 2003 18:27:46 +0100 Subject: [thelist] winmail.dat Message-ID: <5FE6B3ECF0C96146B15E3719E569FBC7DB52@cerberus.enteractiontv.com> It's unfortunately an end-user setting - nothing you can do about it - it's down to user education. In Outlook they need to change Rich Text (which is what actually creates Rich Text encoded files for other outlook users only) to HTML or plain text - very simple. They've probably made themselves a pretty sig, and can't work out how to do it in html ;) We've an outlook/exchange house, and I've threatened any users who use rich text that I'll force all their e-mail outbound to be vanilla plain text if they don't cease and desist! Works especially well with marketing types! HTH Scott -----Original Message----- From: Cheryl Amato [mailto:camato1 at gl.umbc.edu] Sent: 21 August 2003 16:36 To: thelist at lists.evolt.org Subject: [thelist] winmail.dat Occassionally I have a problem w/ email attachment. I work on a Mac & often when people working on PCs send me attachments I receive them with the winmail.dat extension & can't open them up. I've always thoiught it was something in the way their email was set up but don't know that for sure. Is there something I can do on my machine that will let me open them up? Or a setting on their machine? Normally I use Pine to read email but have even tried forwarding the email to web-based account w/ the same results. Any suggestions? tia Cheryl Amato -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From joel at spinhead.com Thu Aug 21 12:41:46 2003 From: joel at spinhead.com (Joel D Canfield) Date: Thu, 21 Aug 2003 10:41:46 -0700 Subject: [thelist] PHP - getting variables from a form when register_globals is off Message-ID: <72E9FAA171D63B48AAC707C72900E6B47410@ireland.spinhead.com> I'm way fuzzy this morning, and this isn't making any sense to me. Moving some code to a new host (from a Unix box to Windows box) which I don't have direct access to (although I could get it if necessary.) This code seems to result in a blank page. Is there something obviously amiss? ==================================== "; print $strlname; print "
"; print $strcoinst; print "
"; print $straddress1; print "
"; print $straddress2; print "
"; print $strcity; print "
"; print $strstate; print "
"; print $strzip; print "
"; print $strphone; print "
"; print $stremail; print "
"; print $strhowfound; print "
"; print $strsearchwords; print "
"; print $strhelp; print "
"; print $strcontacttime; print "
"; print $strcomments; print "
"; ?> ==================================== and then follows a pretty normal HTML page. Thanks spinhead From Anthony at Baratta.com Thu Aug 21 12:45:17 2003 From: Anthony at Baratta.com (Anthony Baratta) Date: Thu, 21 Aug 2003 10:45:17 -0700 Subject: [thelist] winmail.dat In-Reply-To: Message-ID: <5.1.0.14.2.20030821104413.02444830@baratta.com> WinMail.Dat is from Outlook sending the email as Rich Text Format. I have the same problem because I use Eudora. I normally ask the sender to resend as plain text. -- Anthony Baratta President Keyboard Jockeys "Conformity is the refuge of the unimaginative." From khallman at wrack.org Thu Aug 21 12:56:15 2003 From: khallman at wrack.org (Kelly Hallman) Date: Thu, 21 Aug 2003 10:56:15 -0700 (PDT) Subject: [thelist] winmail.dat In-Reply-To: Message-ID: On Thu, 21 Aug 2003, Cheryl Amato wrote: > Occassionally I have a problem w/ email attachment. I work on a Mac & > often when people working on PCs send me attachments I receive them with > the winmail.dat extension & can't open them up. I've always thoiught it > was something in the way their email was set up but don't know that for > sure. Is there something I can do on my machine that will let me open > them up? Or a setting on their machine? Normally I use Pine to read > email but have even tried forwarding the email to web-based account w/ > the same results. Any suggestions? There are usually utilities available to extract files out of a TNEF (WINMAIL.DAT) file for most platforms. If you are on Mac OS X you can probably get or compile a command line version, there are a few on sourceforge, one is tnef.sourceforge.net ... do a search? TNEF is another proprietary Microsoft file format, ostensibly to encapsulate RTF formatting into an email. Outlook decodes them silently so it only effects those people not using Outlook, and of course it also does it's best to try to send TNEF files to those who won't be able to read them. It is actually based on the sender's default settings and the settings they have for that recipient, but I don't know the exact setting changes that will alleviate the problem. -- Kelly Hallman http://wrack.org/ From domitianx at domitianx.com Thu Aug 21 13:14:14 2003 From: domitianx at domitianx.com (Mike Carlson) Date: Thu, 21 Aug 2003 13:14:14 -0500 Subject: [thelist] winmail.dat References: Message-ID: <00e701c36810$06f375d0$cb0a0a0a@mikec4> That is when they are using an Exchange server on their end and they have their mail set to RichText. When Exchange sends it out, it attaches the email attachment as a winmail.dat file and when Exchange gets a file with that attachment, it decodes the attachment out. Its really annoying. I think this was a Exchange 5.5 thing only. I havent noticed it on my Exchange 2k box. Now that I think about it, you might also run into that problem with certain versions of Outlook on the PC even if you are not using an Exchange server. Not sure, but I think I remember that happening once. There is a file out there called fentun.exe that I use to decode the message. I use it to extract the attachments out of the file. I can email you a copy if you want, but it is PC only. The other option is to have the sender send email only in Plain Text instead. That will resolve the problem. -Mike Carlson domitianx at domitianx.com http://www.uselessthoughts.com ----- Original Message ----- From: "Cheryl Amato" To: Sent: Thursday, August 21, 2003 10:35 AM Subject: [thelist] winmail.dat > Occassionally I have a problem w/ email attachment. I work on a Mac & > often when people working on PCs send me attachments I receive them with > the winmail.dat extension & can't open them up. I've always thoiught it > was something in the way their email was set up but don't know that for > sure. Is there something I can do on my machine that will let me open them > up? Or a setting on their machine? Normally I use Pine to read email but > have even tried forwarding the email to web-based account w/ the same > results. Any suggestions? > > tia > Cheryl Amato > > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! > From wade_lists at runstrong.com Thu Aug 21 13:21:14 2003 From: wade_lists at runstrong.com (Wade Armstrong) Date: Thu, 21 Aug 2003 11:21:14 -0700 Subject: [thelist] [ASP] templating system woe's In-Reply-To: <77025926DDD85A4D886C5B8A34E43E742D7741@exchange.internal.municode.com> Message-ID: on 8/21/03 7:29 AM, Stephen Caudill at SCaudill at municode.com wrote: > Joshua Olson on Thursday, August 21, 2003 8:25 AM said: > > : ----- Original Message ----- > : From: "Stephen Caudill" > : Sent: Wednesday, August 20, 2003 6:12 PM > : > :: I've been kicking myself over it all afternoon. The only > :: thing that has occurred to me is to write the contents of the > :: to a temp file and server.execute that into place in the > :: template, but that seems very inelegant and likely to add too > :: much overhead to the processing (there's already a ton of FSO > :: and RegExp...) > : > : Not too bad of a solution given the scenario. In regards to > : overhead, do think about how much traffic the site is likely to > : generate before getting too worried. One nice benefit to this > : method is that you could concievable cache the pages to disk and > : only overwrite them if the database record is updated. Comparing > : the datestamp of the record against the datestamp of the file > : should give you this info. > > This is a rewrite of the templating engine currently in place for > http://www.municode.com/ which receives around 10k visitors a day > give or take a couple grand... so the overhead is definitely an > issue. I hadn't thought about caching the pages to disk, though. > Nor do I have any experience with it. Seems viable, but still > invokes a strond sense of "wrongness". Not necessarily "wrong" at all -- in fact, it can be very fast! If, each time the is updated, you write that to a file using the FSO and then Server.Execute that, it'll be pretty darned fast, actually - much faster than querying a database for each time the page is viewed. This particularly works great if there's a large number of page views for each page update, as there are on most public sites; it works less well for pages that are often updated, like in a Wiki, because using the FSO is a pretty expensive operation. From rudy937 at rogers.com Thu Aug 21 13:40:45 2003 From: rudy937 at rogers.com (rudy) Date: Thu, 21 Aug 2003 14:40:45 -0400 Subject: [thelist] [MS SQL Trickery] Is my technique good, bad, or neither? Message-ID: <20030821184045.KKM7045.fep02-mail.bloor.is.net.cable.rogers.com@localhost> > Why did you pick a CROSS JOIN? 1 coolness factor 2 simplicity 3 no key to join on 4 there's only one row, dude ;o) > Does a CROSS JOIN run better than an INNER JOIN because > the parser doesn't worry about having to filter the results? no idea it works, that's 90% of what i care about the other 10% (performance in the real world) i usually delegate to a DBA run some EXPLAINs, i'd be interested in the comparison rudy From nepolon at worlddomination.net Thu Aug 21 15:02:44 2003 From: nepolon at worlddomination.net (Steve Lewis) Date: Thu, 21 Aug 2003 13:02:44 -0700 Subject: [thelist] RE: PHP & Accessibility In-Reply-To: References: Message-ID: <3F452564.7030601@worlddomination.net> Andre Genic wrote: >Thanks for the suggestions so far, as for why I raised this subject, I've >been reading with interest about accessibility via .NET a UK internet mag, >whether they are spicing things up to create a sort of panic I don't know. > > .NET is a different beast because it tries to integrate all kinds of fabulous Microsoft product-specific functionality into a client-server framework that is larger than the HTTP protocol. In this way it ties browser behavior to the web server in special ways. PHP is used as a server-side technology. While it is the developer's responsibility to address the issue of accessibility there is nothing in PHP which addresses this because accessibility is a concern isolated to the browser-side of the experience, not the web server. You need to write accessible HTML with your PHP code, but there is nothing in PHP that helps or hinders the accessibility of the resulting HTML. >As for the tables I use to display data, they are a mess, and I mean a mess, >perhaps it's time I dabbled with CSS to generate tables, perhaps there >should be some clear definitions and guidelines for developers and I mean in >a definitive way, perhaps their is already, and I've completely missed it. > > Take little steps. Work on eliminating one table that has two layout elements side by side, regardless of whether there are three or four nested tables inside them. If you can remove one simple instance of tables-as-layout you have made a big step forward. Look for areas that look like they would be easiest to clean up, then work on the harder ones later as your proficiency and confidence improves. Expect to spend some time, and it is ok to back out of a change and try another one that turns out to be easier. Baking cookies will always be easier than any sort of application/web development. If we could reduce development to a foolproof process, some genius would write a program that would write all the rest of the programs we need for us, and I would be sipping lemonade in the sun instead of sitting in this chair. :) A couple of clarifications for you: Tables are good for tabular data. Tables are often not necessary for layout. Depending on the complexity of the layout you are working on, sometimes you are reduced to having to use tables. Always avoid absolutes (such as "Never use tables," or even "Never use tables for layout"). Also, CSS doesn't generate tables, but using CSS to modify the display of tables, divs, headers (h1 h2 etc), paragraphs, lists, to get the layout you want. CSS isn't a magic bullet, and browsers are not yet ready for all HTML to be clear of display-oriented markup but we can move in that direction and often get very good results. A good starter-reference for writting CSS (a tutorial and reference combined) is available at http://www.w3schools.com/css >But I would sooner make sites that are accessible, there would be nothing >worse than getting a big client, developing their site, only for them to get >sued, after all it all comes back to the developer. > > First define accessibility: http://www.w3.org/TR/WAI-WEBCONTENT/ Now use bobby to look at some of your favorite websites and see how they rate. Bobby tries to programatically evaluate the accessibility of a page: http://bobby.watchfire.com/ Note that Bobby has limitations: it isn't able to really understand the content or context of a web page, it isn't able to see the images with real eyes to detect poor color choices (affecting those with color blindness for instance), etc. It doesn't allow exceptions to it's rules, and will always complain about the same things. You should consider Bobby's response as feedback, not a religious document, and update your pages accordingly. Are the problems Bobby lists going to impair a user's ability to navigate? to extract content? How friendly is it to folks with dissabilities? (are a bunch of ads and navigation items read by a screen reader before the content of the page?) Determine how far you feel you want to go to answer the needs of the client AND provide reasonable accessibility. CSS can help you improve the accessibility of your work, but most of the work involved in improving accessibility will still reside in the HTML. The specific advantage of CSS is that it can help you eliminate some of the problematic and complex HTML that you would normally have in a highly complex layout. >P.S. Is there any sites you can think of off hand that are 100% accesible, >links would be greatly appreciated. > Can't say that I have looked but I will say agian, always avoid absolutes! :) Steve From mindmachine at hotmail.com Thu Aug 21 15:39:47 2003 From: mindmachine at hotmail.com (Og) Date: Thu, 21 Aug 2003 16:39:47 -0400 Subject: [thelist] mySQL and the phantom database. Message-ID: PHP and mySQL are living comfortably in their new home. But they want to have a database, I didn't know what to tell them. I searched numerous sites and such, lots of info on database management, I even have software to work with the database once it's here. But unless there is a DB stork I'm at a loss. How do I create that first baby DB?.. PHP and mySQL are counting on me. Any help would be appreciated. Thanks to all. ;) Cheers Paul J Maguire CEO Ogmatter www.ogmatter.com info at ogmatter.com "Ogmatter In mind" Note : All outgoing emails have been scanned with Norton Anti-Virus From SCaudill at municode.com Thu Aug 21 16:04:51 2003 From: SCaudill at municode.com (Stephen Caudill) Date: Thu, 21 Aug 2003 17:04:51 -0400 Subject: [thelist] [ASP] templating system woe's Message-ID: <77025926DDD85A4D886C5B8A34E43E742D7744@exchange.internal.municode.com> Anthony Baratta on Thursday, August 21, 2003 11:47 AM said: : Here's a bit of testing info: : Anthony Baratta : President : Keyboard Jockeys : : "Conformity is the refuge of the unimaginative." Anthony, Since I'm using FSO to extract the data as a string from already marked up files, this didn't work for me. Thanks though, I had no idea that you could execute response.write statements like that; very cool. Against my better judgement, I conceded to myself this afternoon and am currently using FSO to write the data to a temporary file associated with the users sessionid and then server.execute-ing that into the file after the template is applied... I don't like the idea of it, but it works fine. I'm stress testing it now. If anyone has a better idea, I'd LOVE to hear it. Thanks again, Stephen From pgl at instinct.org Thu Aug 21 16:29:09 2003 From: pgl at instinct.org (Peter Lowe) Date: Thu, 21 Aug 2003 23:29:09 +0200 Subject: [thelist] PHP - getting variables from a form when register_globals is off In-Reply-To: <72E9FAA171D63B48AAC707C72900E6B47410@ireland.spinhead.com> References: <72E9FAA171D63B48AAC707C72900E6B47410@ireland.spinhead.com> Message-ID: <20030821212909.GA63274@yoyo.org> On Aug 21, Joel D Canfield wrote: > I'm way fuzzy this morning, and this isn't making any sense to me. > > Moving some code to a new host (from a Unix box to Windows box) which I > don't have direct access to (although I could get it if necessary.) > > This code seems to result in a blank page. Is there something obviously > amiss? > > ==================================== > $today = date("F j, Y, g:i a"); > > strfname = $_post['fname']; Try $_POST, and make sure the data is POSTed and not submitted via GET (or consider using $_REQUEST). - Peter -- The Czech Republic: Home of the world's finest beer. Litres drunk by Czechs so far this year: 1,046,984,247.53 - http://prague.tv/toys/beer/ From tim at incutio.com Thu Aug 21 16:24:26 2003 From: tim at incutio.com (Tim Fountain) Date: Thu, 21 Aug 2003 22:24:26 +0100 Subject: [thelist] PHP - getting variables from a form when register_globals is off In-Reply-To: <72E9FAA171D63B48AAC707C72900E6B47410@ireland.spinhead.com> References: <72E9FAA171D63B48AAC707C72900E6B47410@ireland.spinhead.com> Message-ID: <105171938634.20030821222426@incutio.com> On Thursday, August 21, 2003 at 18:41, Joel wrote: > This code seems to result in a blank page. Is there something obviously > amiss? [...] > strfname = $_post['fname']; $_post should be $_POST. Variables are case sensitive. -- Tim Fountain | Web developer | Incutio Limited | www.incutio.com email: tim at incutio.com | Tel: +44 8708 700 333 | Fax: +44 7092 181 581 From lists at wirelust.com Thu Aug 21 16:52:02 2003 From: lists at wirelust.com (Mike F) Date: Thu, 21 Aug 2003 17:52:02 -0400 Subject: [thelist] Two column fixed width layout Message-ID: <3F453F02.3030900@wirelust.com> I've been designing my new layout and am having a couple problems. If you check out the draft (http://www.spoonerist.com/draft/) you'll see that the border breaks on the right side (at least for me it does in both IE 6 and Firebird 0.6.1). To see the technique I'm using for the two-column layout, either check out the CSS (http://www.spoonerist.com/draft/default.css) or the site I got the layout from (http://www.guyweb.co.uk/experiments/). Does anyone know how I could remedy this small problem? Preferably without a hack... Thanks in advance. Mike Foroobar From sam at sam-i-am.com Thu Aug 21 16:57:25 2003 From: sam at sam-i-am.com (Sam) Date: Thu, 21 Aug 2003 16:57:25 -0500 Subject: [thelist] Canto Cumulus? In-Reply-To: <20030821015157.6763.qmail@web12603.mail.yahoo.com> References: <20030821015157.6763.qmail@web12603.mail.yahoo.com> Message-ID: <3F454045.4070301@sam-i-am.com> hi Tom, we use it here at work for (internal) asset management. We've got an archive of scans, images, pdf, docs etc going back 30+ years that our 2 librarians maintain. Mostly their interface with it is the database tool - adding data and metadata. We also used their web add-on to make the archive available on the intranet. I did most of that work originally, they've since taken it on. It does some nice things like on-demand generation of various resolutions of the (graphic) assets. And it has a shopping cart like functionality for acummulating a set of assets for download. We had some difficulty with it intially but their tech support was fairly responsive. I didn't do any of the comparitive purchasing research so I can't tell you if its better or worse than productX. I can say it was sufficiently non-intuitive to warrant 3 weeks of developer (me) time to I can get a workable, attractive web interface on it.. The templating is a little funky and limited, but we ultimately got done what we wanted done. Technically speaking there's a database component - with a windows client for data entry, management. For the web functionality there's a cgi (compiled .exe) that allows querying of the database and does the templating. We use it with IIS. As a cgi it probably works with all kinds of servers though. If you have specific questions, feel free to contact me offlist (or on even). Sam Tom Dell'Aringa wrote: > Hi, > > I have a job opportunity in front of me that might include dealing > with a large image database that is stored in a Cumulus database, > which a company called Canto is the maker of. > > This is the only thing that I am not familiar with that has to do > with the job. I've take a brief look at thier website but its a lot > of marketing speak. Does anyone know anything about this that could > give some insight? Is it good, bad, or indifferent? How is it to work > with - or is it some kind of standalone system? > From cparker at swatgear.com Thu Aug 21 17:01:19 2003 From: cparker at swatgear.com (Chris W. Parker) Date: Thu, 21 Aug 2003 15:01:19 -0700 Subject: [thelist] PHP - getting variables from a form when register_globalsis off Message-ID: <001BD19C96E6E64E8750D72C2EA0ECEE2B7F52@ati-ex-01.ati.local> Joel D Canfield on Thursday, August 21, 2003 10:42 AM said: > This code seems to result in a blank page. Is there something > obviously amiss? Two things: 1. PHP is case sensitive so $_POST != $_post 2. PHP requires that a variable have a $ in front of it. > strfname = $_post['fname']; > strlname = $_post['lname']; > strcoinst = $_post['coinst']; etc. should be $strfname = $_post['fname']; $strlname = $_post['lname']; $strcoinst = $_post['coinst']; hth, Chris. From pgl at instinct.org Thu Aug 21 19:10:39 2003 From: pgl at instinct.org (Peter Lowe) Date: Fri, 22 Aug 2003 02:10:39 +0200 Subject: [thelist] mySQL and the phantom database. In-Reply-To: References: Message-ID: <20030822001039.GA65337@yoyo.org> On Aug 21, Og wrote: > PHP and mySQL are living comfortably in their new home. But they want to have a database, I didn't know what to tell them. I searched numerous sites and such, lots of info on database management, I even have software to work with the database once it's here. But unless there is a DB stork I'm at a loss. How do I create that first baby DB?.. PHP and mySQL are counting on me. Any help would be appreciated. Thanks to all. Basically: create database newdb; grant all privileges on newdb to username at host.example.com identified by 'apassword'; flush privileges; Not sure if the flush is necessary, but it used to be and I do it just in case. Reference: http://www.mysql.com/doc/en/CREATE_DATABASE.html http://www.mysql.com/doc/en/GRANT.html - Peter -- The Czech Republic: Home of the world's finest beer. Litres drunk by Czechs so far this year: 1,047,482,204.60 - http://prague.tv/toys/beer/ From nemesis at nemesis1.f2o.org Thu Aug 21 19:24:47 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Thu, 21 Aug 2003 20:24:47 -0400 Subject: [thelist] mySQL and the phantom database. In-Reply-To: References: Message-ID: <3F4562CF.20005@nemesis1.f2o.org> Og wrote: > PHP and mySQL are living comfortably in their new home. But they want to have a database, I didn't know what to tell them. I searched numerous sites and such, lots of info on database management, I even have software to work with the database once it's here. But unless there is a DB stork I'm at a loss. How do I create that first baby DB?.. PHP and mySQL are counting on me. Any help would be appreciated. Thanks to all. > ;) > The PHP Manual is your friend. http://www.php.net/mysql_create_db HTH Gary -- The Nemesis Project http://nemesis1.f2o.org One Stop CSS From john at neoncowboy.com Thu Aug 21 19:28:41 2003 From: john at neoncowboy.com (John Corry) Date: Thu, 21 Aug 2003 14:28:41 -1000 Subject: [thelist] mySQL and the phantom database. In-Reply-To: Message-ID: <005301c36844$699393d0$6501a8c0@neonreactor> MySQL already has a database (default name is 'mysql') for managing users, permissions...etc. You should get phpMyAdmin set up so you have an interface for creating and managing db's on the server. John > -----Original Message----- > From: thelist-bounces at lists.evolt.org > [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Og > Sent: Thursday, August 21, 2003 10:40 AM > To: thelist at lists.evolt.org > Subject: [thelist] mySQL and the phantom database. > > > PHP and mySQL are living comfortably in their new home. But > they want to have a database, I didn't know what to tell > them. I searched numerous sites and such, lots of info on > database management, I even have software to work with the > database once it's here. But unless there is a DB stork I'm > at a loss. How do I create that first baby DB?.. PHP and > mySQL are counting on me. Any help would be appreciated. > Thanks to all. > ;) > > Cheers > > Paul J Maguire > CEO Ogmatter > www.ogmatter.com > info at ogmatter.com > > "Ogmatter In mind" > > Note : All outgoing emails have been scanned with Norton Anti-Virus > -- > * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From rudy937 at rogers.com Thu Aug 21 19:54:19 2003 From: rudy937 at rogers.com (rudy) Date: Thu, 21 Aug 2003 20:54:19 -0400 Subject: [thelist] [MS SQL Trickery] Is my technique good, bad, or neither? References: <113-2003-0821-144056-171894@fep02-imail.bloor.is.net.cable.rogers.com> Message-ID: <00d601c36847$fb6a24b0$52639c18@r9373j4yqbe8dy> well it appears that the internet swallowed my original reply to the list to joshua's question, and barfed up dupes of a reply to a message that i now see was probably offlist to me if anyone's confused, sorry blame it on sobig, blame it on my service provider, blame it on me here's my first reply to joshua's original question: > UDF? not terribly portable across database systems > > that may of course not be a big concern to you > > still, i don't see your method as "trickery" > > dunno about UDF performance in queries, i never used one before > > > here's an alternate strategy: an application "ooak" table > > "ooak" = "one of a kind" > > similar to oracle's DUAL, and used in exactly the same circumstances that > DUAL is used -- > > e.g. select current_date from ooak > > ooak has exactly one row, and i usually don't both assigning a pk (because > instances where a pk is required are vanishingly rare, i.e. where ooak has > child tables with foreign keys that need to reference ooak's pk) > > there is one column for every "one of" application constant > > create table ooak > ( default_language_id smallint not null ) > > insert into ooak values (11) > > your default language thingie fits this model perfectly! > > CREATE VIEW dbo.view_items_default_language > AS > SELECT > item.field1 > , item.field2 > , ... > , item.fieldX > , item_language.name > , item_language.description > FROM dbo.item > CROSS JOIN dbo.ooak -- is this cool or what > INNER JOIN dbo.item_language > ON dbo.item_language.language_id = dbo.ooak.default_language_id > AND dbo.item_language.item_id = dbo.item.id if anyone's interested in an elaboration, just holler the cross join is a pretty rare animal and this is a great example where it is combined with a single-row table to provide customized application data without pain or fuss rudy From ralph at nqionline.com Thu Aug 21 20:49:36 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Thu, 21 Aug 2003 18:49:36 -0700 Subject: [thelist] mySQL and the phantom database. In-Reply-To: Message-ID: <000b01c3684f$a4fcec90$6401a8c0@ralphxorostodu> Paul, Start by installing phpMyAdmin, a web based utility to manage your mySQL database: http://www.phpmyadmin.net/ Then start learning using various resources available. Here are a few to get started with: http://www.devarticles.com/cats/18 http://www.devarticles.com/cats/9 http://www.zend.com/developers.php http://www.devshed.com/Server_Side/PHP http://www.phpcomplete.com/ http://www.hotscripts.com/PHP/Tips_and_Tutorials/index.html and don't forget the manuals. Both PHP and MySQL are well documented: http://www.php.net/manual/en/ http://www.mysql.com/doc/en/index.html Also, if you haven't already sign up for the php general mailing lists: http://www.php.net/mailing-lists.php Ralph -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Og Sent: Thursday, August 21, 2003 1:40 PM To: thelist at lists.evolt.org Subject: [thelist] mySQL and the phantom database. PHP and mySQL are living comfortably in their new home. But they want to have a database, I didn't know what to tell them. I searched numerous sites and such, lots of info on database management, I even have software to work with the database once it's here. But unless there is a DB stork I'm at a loss. How do I create that first baby DB?.. PHP and mySQL are counting on me. Any help would be appreciated. Thanks to all. ;) Cheers Paul J Maguire CEO Ogmatter www.ogmatter.com info at ogmatter.com "Ogmatter In mind" Note : All outgoing emails have been scanned with Norton Anti-Virus -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From dianesoini at earthlink.net Thu Aug 21 21:12:33 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Thu, 21 Aug 2003 19:12:33 -0700 Subject: [thelist] Re: background repeat In-Reply-To: <200308202123.19PGYM5Zj3NZFlr0@killdeer> Message-ID: <176CDA76-D446-11D7-911E-00039358CB42@earthlink.net> I haven't had any problems in NN4 with the background repeat property. The only problem I have had is if I'm trying to use the background image in a and the image in question is a .gif. It seems to do better if the image is a .jpg. And NN4 doesn't like background images at all if they are defined relative to the stylesheet. They seem to have to be relative to the page. On Wednesday, August 20, 2003, at 09:23 PM, thelist-request at lists.evolt.org wrote: >> >>> How do I get a backgound not to repeat itself in all the browsers? >> >> You don't if you have to include NN4 for the rest use CSS >> >> background-repeat:no-repeat; > > no-repeat works in NN4.x... repeat-x or repeat-y is tricky, however... > > given the original requirement of *all* browsers, i can say that that > isn't likely... however, to see lots of other browsers, try these > support charts for the no-repeat property: From list at zettai.net Thu Aug 21 21:18:00 2003 From: list at zettai.net (george donnelly) Date: Thu, 21 Aug 2003 21:18:00 -0500 Subject: [thelist] strip html etc Message-ID: hi all I'm implementing a zope solution for a client in which content and presentation will be separate. The client has an old website where each page has content and presentation. My current task is to separate the content from the presentation in about 5000+ html pages so that it can be dumped into the new site. Does anyone have any suggestions or experiences with this kind of task? Can anyone point me to any good practices for this? thanks <--> george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting" Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ MSN: zettainet at hotmail.com ~ ICQ: 51907738 From rudy937 at rogers.com Thu Aug 21 21:19:24 2003 From: rudy937 at rogers.com (rudy) Date: Thu, 21 Aug 2003 22:19:24 -0400 Subject: [thelist] BBC News Style Guide Message-ID: <013901c36853$db0cf6a0$52639c18@r9373j4yqbe8dy> BBC News has released a Style Guide for writers http://www.bbctraining.co.uk/onlineCourse.asp?tID=5487&cat=3 here's the table of contents -- Why does the BBC need a styleguide? The bits that matter: parts of speech The basics Abbreviations and acronyms Active and passive Americanisms Attribution first Clich?s and journalese Collective nouns Confusables Cues Danglers The definite article Devolution European Union FAQs: from fewer to might Foreign phrases Jargon Numbers and measures Names and titles Getting it right: things you should know Reported speech Sensitivity Speaking it out loud Superlatives Words: simple, troublesome, in vogue and superfluous Finally ... avoid irritating your editor Books and websites for more information and advice relevance to web development? almost every web site has written content as the intro says, "Good writing is not a luxury; it is an obligation." hat tip: Andy King, Webreference.com, who got it from Meryl.net rudy From dianesoini at earthlink.net Thu Aug 21 21:30:22 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Thu, 21 Aug 2003 19:30:22 -0700 Subject: [thelist] PHP & Accessibility In-Reply-To: <200308202123.19PGYM5Zj3NZFlr0@killdeer> Message-ID: <94502220-D448-11D7-911E-00039358CB42@earthlink.net> Tables and accessibility aren't mutually exclusive. For one thing, you must use them to display tabular data. There are lots of things you can do to make your tables more accessible, such as ways to use certain attributes to link up the column or row headers with the data. As for tables used for layout, it isn't really a crime. I've seen a demo of a screen reader that reads the summary attribute of a table, and if it says "table for layout" or something like that, it isn't totally horrible. After all, screen readers have been reading html pages longer than the css for tableless layout has been around (and in my opinion, tableless layout is still not ready for prime time). Just try to see how you can reduce the complexity of your layout so you don't have to have a lot of layout tables. A good thing to do is use the validators to validate for accessibility and look up section 508 accessibility standard for more info. All we can do so far is aspire. On Wednesday, August 20, 2003, at 09:23 PM, thelist-request at lists.evolt.org wrote: > Date: Thu, 21 Aug 2003 02:25:02 +0100 > From: "Andre Genic" > To: "Thelist at Lists. Evolt. Org" > Subject: [thelist] PHP & Accessibility > Message-ID: > Content-Type: text/plain; > charset="iso-8859-1" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Precedence: list > Reply-To: g3nic at lycos.co.uk, "thelist at lists.evolt.org" > > Message: 21 > > I'm looking into accessibility, but I'm just wondering how well it can > merge > with PHP. > > Why do I ask, well I'm still a very naive with accessibility, but from > what > I've read so far it looks like tables (my main source of web building) > are a > no no? I'm sure you can tell me more on this. > > Thing is that I want to make sites that are viewable by all, but if > tables > are out? what options are open for rendering dynamically displaying > information (from MySQL), and I mainly use tables for that, I'd hate to > think that I've invested a lot of time learning PHP and I'd hate to > think it > was all for nothing. > > I'd really appreciate any pointers in the right direction, so I can > learn > more, get my facts straight and get things right etc. > > Apologies if this sounds really dumb. > > Andre. From rudy at r937.com Thu Aug 21 21:18:21 2003 From: rudy at r937.com (r937) Date: Thu, 21 Aug 2003 22:18:21 -0400 Subject: [thelist] BBC News Style Guide Message-ID: <012b01c36853$b4c26980$52639c18@r9373j4yqbe8dy> BBC News has released a Style Guide for writers http://www.bbctraining.co.uk/onlineCourse.asp?tID=5487&cat=3 here's the table of contents -- Why does the BBC need a styleguide? The bits that matter: parts of speech The basics Abbreviations and acronyms Active and passive Americanisms Attribution first Clich?s and journalese Collective nouns Confusables Cues Danglers The definite article Devolution European Union FAQs: from fewer to might Foreign phrases Jargon Numbers and measures Names and titles Getting it right: things you should know Reported speech Sensitivity Speaking it out loud Superlatives Words: simple, troublesome, in vogue and superfluous Finally ... avoid irritating your editor Books and websites for more information and advice relevance to web development? almost every web site has written content as the intro says, "Good writing is not a luxury; it is an obligation." hat tip: Andy King, Webreference.com, who got it from Meryl.net rudy From syoung at unitec.ac.nz Thu Aug 21 22:12:49 2003 From: syoung at unitec.ac.nz (Stuart Young) Date: Fri, 22 Aug 2003 15:12:49 +1200 Subject: [thelist] Setting up PHP & mySQL Message-ID: Paul J Maguire wrote: > Excellent.. I got it all setup, through the help I got here and the > instructions with mySQL and PHP.. it worked. Thanks so much for your help. > A special thanks to Burhan Khalid for his simple instructions for PHP and > mySQL installation. I used the Apache Triad 1.1 bundle of Apache PHP MySQL which was a really easy install and also installed PHPMyAdmin, Apache SSL, Perl and lots of goodies. http://sourceforge.net/projects/apache2triad/ but this project seems to have dissapeared I also tried PHPtriad 2.1. which supposedly does the same thing, http://sourceforge.net/projects/phptriad/ but I couldn't get this install to work, and I also note that development of this project has discontinued in favour of a commerical product which the URL of I can't find now. > Now I'm looking for some mySQL database admin > software.. shareware or freeware is fine. PHPMyAdmin of course! http://sourceforge.net/projects/phpmyadmin/ So I have a working copy of Apache PHP MySQL on my win NT PC but I'm now stuck with changing the default MySQL user settings creating virtual directories to store my PHP website projects the documentation is incomprehensible to me. Oh well I just need to spend more time on it. The only text books I could find on this were either * set up IIS PHP MySQL on windows or * set up Apache PHP MySQL on Linux I couldn't find any text books that holds the users hand through * set up Apache PHP MySQL on windows cheers Dr Stuart Young, +64 (0)9-815 4321 Ex 8656 Lecturer, School of Computing and Information Technology, UNITEC Institute of Technology, Auckland, New Zealand "Have I lost faith in Microsoft? Yes, completely, I no longer care or believe any claim or announcement they make. I am not interested in their latest and greatest version of anything." From pixelmech at yahoo.com Thu Aug 21 22:19:01 2003 From: pixelmech at yahoo.com (Tom Dell'Aringa) Date: Thu, 21 Aug 2003 20:19:01 -0700 (PDT) Subject: [thelist] Canto Cumulus? In-Reply-To: <3F454045.4070301@sam-i-am.com> Message-ID: <20030822031901.7417.qmail@web12608.mail.yahoo.com> Hey Sam thanks a bunch for the info. If I need any help i will indeed contact you, appreciate the offer! Tom --- Sam wrote: > hi Tom, > we use it here at work for (internal) asset management. We've got > an > archive of scans, images, pdf, docs etc going back 30+ years that > our 2 > librarians maintain. Mostly their interface with it is the database > tool > - adding data and metadata. > We also used their web add-on to make the archive available on the > intranet. I did most of that work originally, they've since taken > it on. > > It does some nice things like on-demand generation of various > resolutions of the (graphic) assets. And it has a shopping cart > like > functionality for acummulating a set of assets for download. > > We had some difficulty with it intially but their tech support was > fairly responsive. I didn't do any of the comparitive purchasing > research so I can't tell you if its better or worse than productX. > I can > say it was sufficiently non-intuitive to warrant 3 weeks of > developer > (me) time to I can get a workable, attractive web interface on it.. > The > templating is a little funky and limited, but we ultimately got > done > what we wanted done. > Technically speaking there's a database component - with a windows > client for data entry, management. For the web functionality > there's a > cgi (compiled .exe) that allows querying of the database and does > the > templating. We use it with IIS. As a cgi it probably works with all > > kinds of servers though. > > If you have specific questions, feel free to contact me offlist (or > on > even). > > Sam > > Tom Dell'Aringa wrote: > > Hi, > > > > I have a job opportunity in front of me that might include > dealing > > with a large image database that is stored in a Cumulus database, > > which a company called Canto is the maker of. > > > > This is the only thing that I am not familiar with that has to do > > with the job. I've take a brief look at thier website but its a > lot > > of marketing speak. Does anyone know anything about this that > could > > give some insight? Is it good, bad, or indifferent? How is it to > work > > with - or is it some kind of standalone system? > > > > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! ===== http://www.pixelmech.com/ :: Web Development Services http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial Case for Adopting Web Standards] "That's not art, that's just annoying." -- Squidward From syoung at unitec.ac.nz Thu Aug 21 22:20:59 2003 From: syoung at unitec.ac.nz (Stuart Young) Date: Fri, 22 Aug 2003 15:20:59 +1200 Subject: [thelist] regular expressions in homesite or dreamweaver? Message-ID: Hi, I want to follow the advice of Links & JavaScript Living Together in Harmony http://www.evolt.org/article/rating/17/20938/index.html but this means changing 100 different pop-up window links from e.g. to, e.g. Is this possible using regular expressions in homesite or dreamweaver? I have never been able to get the hang of regular expressions. cheers Dr Stuart Young, +64 (0)9-815 4321 Ex 8656 Lecturer, School of Computing and Information Technology, UNITEC Institute of Technology, Auckland, New Zealand "Have I lost faith in Microsoft? Yes, completely, I no longer care or believe any claim or announcement they make. I am not interested in their latest and greatest version of anything." From syoung at unitec.ac.nz Thu Aug 21 22:35:28 2003 From: syoung at unitec.ac.nz (Stuart Young) Date: Fri, 22 Aug 2003 15:35:28 +1200 Subject: [thelist] Unreliable borders Message-ID: carl.myhill at ps.ge.com 2 wrote: > That's a lot of waffle - just really wanted to ask whether there is any > comprehensive explanation of cross-browser problems with Borders anywhere? I don't know, but for cross-browser differences I would look at the Master Compatibility Chart, which should hopefully explain why some CSS properties do different things in some browsers. http://devedge.netscape.com/library/xref/2003/css-support/css1/mastergrid.html cheers Dr Stuart Young, +64 (0)9-815 4321 Ex 8656 Lecturer, School of Computing and Information Technology, UNITEC Institute of Technology, Auckland, New Zealand "Have I lost faith in Microsoft? Yes, completely, I no longer care or believe any claim or announcement they make. I am not interested in their latest and greatest version of anything." From syoung at unitec.ac.nz Thu Aug 21 22:57:34 2003 From: syoung at unitec.ac.nz (Stuart Young) Date: Fri, 22 Aug 2003 15:57:34 +1200 Subject: [thelist] Definition of "Blog" Message-ID: Your first stop whenever you want a definition should always be Wikipedia http://www.wikipedia.org/wiki/Blog ------ sabaffy at mswebdevelopment.com 19/08/2003 10:11:05 wrote: I have heard the term many, many times and I don't know what it means. After having gone to goole and typed in blog hoping to find a definition I am now even more confused.... so if someone would be so kind as to explain what is meant by this term, I would appreciate it. ------ Dr Stuart Young, +64 (0)9-815 4321 Ex 8656 Lecturer, School of Computing and Information Technology, UNITEC Institute of Technology, Auckland, New Zealand "Have I lost faith in Microsoft? Yes, completely, I no longer care or believe any claim or announcement they make. I am not interested in their latest and greatest version of anything." From shortestpath at yahoo.com Thu Aug 21 23:24:00 2003 From: shortestpath at yahoo.com (shortestpath) Date: Thu, 21 Aug 2003 21:24:00 -0700 (PDT) Subject: [thelist] Two column fixed width layout In-Reply-To: <3F453F02.3030900@wirelust.com> Message-ID: <20030822042400.9864.qmail@web41109.mail.yahoo.com> try this- in your css, for your #container style, change its width from 660px to 662px. You'll see that the border on the right now lines up. I believe the misalignment is caused by #container's margin:0 auto; which gives top and bottom 0, but left and right auto. Just a hunch, not quite sure how to explain it though, as I don't really haven't used auto. But hope this gives you some ideas though. -alex --- Mike F wrote: I've been designing my new layout and am having a couple problems. If you check out the draft (http://www.spoonerist.com/draft/) you'll see that the border breaks on the right side (at least for me it does in both IE 6 and Firebird 0.6.1). To see the technique I'm using for the two-column layout, either check out the CSS (http://www.spoonerist.com/draft/default.css) or the site I got the layout from (http://www.guyweb.co.uk/experiments/). Does anyone know how I could remedy this small problem? Preferably without a hack... Thanks in advance. Mike Foroobar __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From genyus at ingenyus.net Thu Aug 21 23:35:52 2003 From: genyus at ingenyus.net (Gary McPherson) Date: Fri, 22 Aug 2003 05:35:52 +0100 Subject: [thelist] [ASP] templating system woe's In-Reply-To: <77025926DDD85A4D886C5B8A34E43E742D7744@exchange.internal.municode.com> Message-ID: <000a01c36866$df954340$0300a8c0@ingenyus.net> > Anthony, > > Since I'm using FSO to extract the data as a string from already > marked up files, this didn't work for me. Thanks though, I > had no idea that you could execute response.write statements like > that; very cool. > > Against my better judgement, I conceded to myself this > afternoon and am currently using FSO to write the data to a > temporary file associated with the users sessionid and then > server.execute-ing that into the file after the template is > applied... I don't like the idea of it, but it works fine. I'm > stress testing it now. > > If anyone has a better idea, I'd LOVE to hear it. > > Thanks again, > Stephen Perhaps this idea, conceived in the post-all-nighter fogginess, will fall over - but how about parsing the string you extract from the file to conform to the two rules Anthony pointed out? Namely: 1.No "<%" or "%>" tags 2.No raw HTML. First, you could apply some formatting rules to any text outside a "<%" "%>" pair which as far as I can tell would just involve doubling any quotes, replacing line breaks with vbcrlf and wrapping it all inside a Response.Write(). Then peel away all the "<%" "%>" tags and you're done. Is it just me or does that sound too simple? Hope that helps, apologies if it doesn't. Gary From genyus at ingenyus.net Thu Aug 21 23:56:36 2003 From: genyus at ingenyus.net (Gary McPherson) Date: Fri, 22 Aug 2003 05:56:36 +0100 Subject: [thelist] regular expressions in homesite or dreamweaver? In-Reply-To: Message-ID: <000b01c36869$c7c8db70$0300a8c0@ingenyus.net> > onClick="openPop('../photos/pop/fealmvas.htm','display','scrol > lbars=yes,width=550')"> > > to, e.g. > > onClick="openPop('../photos/pop/fealmvas.htm','display','scrol > lbars=yes,width=550')"> > > Is this possible using regular expressions in homesite or > dreamweaver? I have never been able to get the hang of regular > expressions. Search for: href="#"\sonClick="openPop\('(.*)','display','scrollbars=yes,width=550'\ )" Replace with: href="$1" onclick="openPop('$1','display','scrollbars=yes,width=550');return false;" HTH, Gary From jsWalter at torres.ws Thu Aug 21 23:58:52 2003 From: jsWalter at torres.ws (jsWalter) Date: Thu, 21 Aug 2003 23:58:52 -0500 Subject: [thelist] Setting up PHP & mySQL In-Reply-To: Message-ID: I have a complete, operational (I have it running on my 2k box) set of instructions onhow to install Apache2, PHP, Perl and mySQL. www.torres.ws/dev/php Works great! No Registry settings! No files in the system directory! No duplication conf/ini files! These apps think they are running on a Un*x box and they are *very* happy! Check it out, see if it will help you. Drop me a note if you hav any questions. Walter > -----Original Message----- > From: thelist-bounces at lists.evolt.org > [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Stuart Young > Sent: Thursday, August 21, 2003 10:13 PM > To: thelist at lists.evolt.org > Subject: Re: [thelist] Setting up PHP & mySQL > > > Paul J Maguire wrote: > > > Excellent.. I got it all setup, through the help I got here and the > > instructions with mySQL and PHP.. it worked. Thanks so much > for your help. > > A special thanks to Burhan Khalid for his simple instructions > for PHP and > > mySQL installation. > > I used the Apache Triad 1.1 bundle of Apache PHP MySQL which was > a really easy install and also installed PHPMyAdmin, Apache SSL, > Perl and lots of goodies. > http://sourceforge.net/projects/apache2triad/ > but this project seems to have dissapeared > I also tried PHPtriad 2.1. which supposedly does the same thing, > http://sourceforge.net/projects/phptriad/ > but I couldn't get this install to work, and I also note that > development of this project has discontinued in favour of a > commerical product which the URL of I can't find now. > > > Now I'm looking for some mySQL database admin > > software.. shareware or freeware is fine. > > PHPMyAdmin of course! > http://sourceforge.net/projects/phpmyadmin/ > > So I have a working copy of Apache PHP MySQL on my win NT PC but > I'm now stuck with > > changing the default MySQL user settings > creating virtual directories to store my PHP website projects > > the documentation is incomprehensible to me. > Oh well I just need to spend more time on it. > > The only text books I could find on this were either > * set up IIS PHP MySQL on windows or > * set up Apache PHP MySQL on Linux > > I couldn't find any text books that holds the users hand through > * set up Apache PHP MySQL on windows > > cheers > > > > Dr Stuart Young, +64 (0)9-815 4321 Ex 8656 > > Lecturer, School of Computing and Information Technology, > UNITEC Institute of Technology, Auckland, New Zealand > > "Have I lost faith in Microsoft? Yes, completely, I no > longer care or believe any claim or announcement they > make. I am not interested in their latest and greatest > version of anything." > > > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! From syoung at unitec.ac.nz Fri Aug 22 01:23:08 2003 From: syoung at unitec.ac.nz (Stuart Young) Date: Fri, 22 Aug 2003 18:23:08 +1200 Subject: [thelist] regular expressions in homesite or dreamweaver? Message-ID: genyus at ingenyus.net 22/08/2003 16:56:36 suggested: Search for: href="#"\sonClick="openPop\('(.*)','display','scrollbars=yes,width=550'\ )" Replace with: href="$1" onclick="openPop('$1','display','scrollbars=yes,width=550');return false;" HTH, Thanks Gary, once I made sure I ticked Regular expressions on !! :-) this worked, but it replaced the URL with $1 !! I was using Homesite 4.5. (actually CF Studio 4.5) Will try with CF5 and various Dreamweaver versions at home, BTW also, what was the /s for after the first href? href="#"\sonClick I had to remove this to get it to work. Thanks for reminding me about adding return false; as well. cheers Dr Stuart Young, +64 (0)9-815 4321 Ex 8656 Lecturer, School of Computing and Information Technology, UNITEC Institute of Technology, Auckland, New Zealand "Have I lost faith in Microsoft? Yes, completely, I no longer care or believe any claim or announcement they make. I am not interested in their latest and greatest version of anything." From jasonh at corestar.co.uk Fri Aug 22 03:37:40 2003 From: jasonh at corestar.co.uk (Jason Handby) Date: Fri, 22 Aug 2003 09:37:40 +0100 Subject: [thelist] BBC News Style Guide In-Reply-To: <013901c36853$db0cf6a0$52639c18@r9373j4yqbe8dy> Message-ID: Hi Rudy, > BBC News has released a Style Guide for writers > > http://www.bbctraining.co.uk/onlineCourse.asp?tID=5487&cat=3 Thanks for that. I've just been looking at the Guardian style guide (which they mention in the BBC one), and it's also really useful: http://www.guardian.co.uk/styleguide Jason From john at johnallsopp.co.uk Fri Aug 22 03:24:34 2003 From: john at johnallsopp.co.uk (john at johnallsopp.co.uk) Date: Fri, 22 Aug 2003 04:24:34 -0400 (EDT) Subject: [thelist] BBC News Style Guide In-Reply-To: <013901c36853$db0cf6a0$52639c18@r9373j4yqbe8dy> References: <013901c36853$db0cf6a0$52639c18@r9373j4yqbe8dy> Message-ID: <39964.195.92.168.164.1061540674.squirrel@www.johnallsopp.co.uk> > BBC News has released a Style Guide for writers > http://www.bbctraining.co.uk/onlineCourse.asp?tID=5487&cat=3 Thanks for that, I've been wanting a copy of this for ages .. since they said they'd written, and distributed to their staff, a document about avoiding cliches. J From magic32 at jps.net Fri Aug 22 05:12:31 2003 From: magic32 at jps.net (Roger Harness) Date: Fri, 22 Aug 2003 03:12:31 -0700 Subject: [thelist] MySQL/website on different servers Message-ID: 'Volters, Our store's website is hosted on/with Earthlink, which at this time does not support MySQL, (or any databases, for that matter). I have personal space hosted with some other folks, that *do* support MySQL, and I have a nice little PHP web app that will read all the inputed store's plus, descriptions, prices, etc. Since my boss doesnt really want to switch hosts, is it possible for the store's site to access the database on my server? like maybe here somewhere? @ $db = mysql_pconnect("localhost", "user", "password"); I mean, can i do anything like: @ $db = mysql_pconnect("http://www.mysite.com/localhost", "user", "password"); (and i did try this. no luck...) or is that some kind of security risk thing that would be really really dumb?? as always, thanks so much for anybody's time! -Roger Harness sorry for a dumb question From kilimajer at webglobe.sk Fri Aug 22 05:58:14 2003 From: kilimajer at webglobe.sk (Marek Kilimajer) Date: Fri, 22 Aug 2003 12:58:14 +0200 Subject: [thelist] MySQL/website on different servers In-Reply-To: References: Message-ID: <3F45F746.30806@webglobe.sk> try: $db = mysql_pconnect("mysite.com", "user", "password"); but most hosts does not allow connections from outside, only localhost. Roger Harness wrote: > 'Volters, > > Our store's website is hosted on/with Earthlink, which at this time does not > support MySQL, (or any databases, for that matter). > > I have personal space hosted with some other folks, that *do* support MySQL, > and I have a nice little PHP web app that will read all the inputed store's > plus, descriptions, prices, etc. > > Since my boss doesnt really want to switch hosts, is it possible for the > store's site to access the database on my server? like maybe here somewhere? > > @ $db = mysql_pconnect("localhost", "user", "password"); > > I mean, can i do anything like: > @ $db = mysql_pconnect("http://www.mysite.com/localhost", "user", > "password"); > > (and i did try this. no luck...) > > or is that some kind of security risk thing that would be really really > dumb?? > > as always, thanks so much for anybody's time! > > -Roger Harness > > sorry for a dumb question > From pradheep at naturesoft.net Fri Aug 22 15:40:54 2003 From: pradheep at naturesoft.net (pradheep) Date: Fri, 22 Aug 2003 16:40:54 -0400 Subject: [thelist] Pradheep :: [
Tag] Message-ID: <3F467FD6.1060706@naturesoft.net> hi how do i make color to the
tag which should display in Netscape? -- \\\|/// \\ ~ ~ // ( @ @ ) -----o00o-(_)-o00o----- c ya PraDheep mobile: 98400 16769 home: 26266317 work: 24617193 -----------0ooo.----- .ooo0 ( ) ( ) ) / \ ( (_/ \_) From david at gigawatt.com Fri Aug 22 06:14:43 2003 From: david at gigawatt.com (David Kaufman) Date: Fri, 22 Aug 2003 07:14:43 -0400 Subject: [thelist] regular expressions in homesite or dreamweaver? References: Message-ID: <000c01c3689e$97064d80$1200a8c0@david> Stuart Young wrote: > genyus at ingenyus.net suggested: >> Search for:[...] >> Replace with: href="$1" > > once I made sure I ticked Regular expressions on !! :-) > this worked, but it replaced the URL with $1 !! actually you should replace with \1 (not $1). this is one of the ways homesite's regexps are different from "real" regexps :-) -dave From cm68 at st-andrews.ac.uk Fri Aug 22 06:17:21 2003 From: cm68 at st-andrews.ac.uk (Chris MacKenzie) Date: Fri, 22 Aug 2003 12:17:21 +0100 Subject: [thelist] CSS font-size Formatting In-Reply-To: Message-ID: Hi, Can any one tell me why "smalltextbold" won't render correctly in a version of IE 6. The definition of smalltextbold generally resides in my css file.
You must complete on-line pre-advising which requires you to check and submit your personal details.
.smalltextbold { font-family: arial, helvetica, sans-serif; font-size: 75%; color: #000000; font-style: normal; font-weight: bold; } Many thanks. Chris From studio at dutchcelt.nl Fri Aug 22 07:08:33 2003 From: studio at dutchcelt.nl (Egor Kloos) Date: Fri, 22 Aug 2003 14:08:33 +0200 Subject: [thelist] Pradheep :: [
Tag] In-Reply-To: <3F467FD6.1060706@naturesoft.net> Message-ID: <59D0BA7C-D499-11D7-8508-000A27AF4846@dutchcelt.nl> > how do i make color to the
tag which should display in Netscape? Easy, don't use HR. Use border-bottom or even a background image. Both are much nicer than using HR. Egor Kloos http://www.dutchcelt.nl/ From rudy937 at rogers.com Fri Aug 22 07:14:01 2003 From: rudy937 at rogers.com (rudy) Date: Fri, 22 Aug 2003 08:14:01 -0400 Subject: [thelist] CSS font-size Formatting References: Message-ID: <00c901c368a6$e2834760$52639c18@r9373j4yqbe8dy> > Can any one tell me why "smalltextbold" won't render correctly > in a version of IE 6. which version? just kidding it depends on your definition of "correctly" the size of the font may be too small for you to notice the difference there could also be other reasons post the url of the page so we can have a look if it's confidential, then make a demo page rudy From cm68 at st-andrews.ac.uk Fri Aug 22 07:36:01 2003 From: cm68 at st-andrews.ac.uk (Chris MacKenzie) Date: Fri, 22 Aug 2003 13:36:01 +0100 Subject: [thelist] CSS font-size Formatting In-Reply-To: <00c901c368a6$e2834760$52639c18@r9373j4yqbe8dy> Message-ID: Hi Rudy, page demo is http://www.st-andrews.ac.uk/~web-reg/test_3_pg.htm. Thanks for looking at this for me. Chris -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of rudy Sent: 22 August 2003 13:14 To: thelist at lists.evolt.org Subject: Re: [thelist] CSS font-size Formatting > Can any one tell me why "smalltextbold" won't render correctly > in a version of IE 6. which version? just kidding it depends on your definition of "correctly" the size of the font may be too small for you to notice the difference there could also be other reasons post the url of the page so we can have a look if it's confidential, then make a demo page rudy -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From R.Livsey at cache-22.co.uk Fri Aug 22 07:40:36 2003 From: R.Livsey at cache-22.co.uk (RLivsey) Date: Fri, 22 Aug 2003 13:40:36 +0100 Subject: [thelist] Mod Rewrite Message-ID: <3F460F44.2040309@cache-22.co.uk> Hi, I've never really used mod rewrite before and am getting a bit lost. I am trying to rewrite the url so that if the user has come to the site not with a subdomain, then they should be directed to www.domain.com/mainsite/ IE www.domain.com/123/456 -> www.domain.com/mainsite/123/456 domain.com/123/456 -> domain.com/mainsite/123/456 but the following would not be changed: subdomain.domain.com/123/456 This is what I have got to so far: #--- start .htaccess ---# RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.domain\.com$ RewriteRule ^www\.domain\.com/(.*) /mainsite/$1 RewriteCond %{HTTP_HOST} ^domain\.com$ RewriteRule ^domain\.com/(.*) /mainsite/$1 #--- end .htaccess ---# But this isnt working (IE its doing nothing that I can tell). mod_rewrite is definately in the loaded modules of Apache. Any chance someone putting me on the right track? It's fairly urgent as I need to get it working this afternoon. Thanks. -- R.Livsey Incutio Web Developer [ PHP | Perl | Java | C# ] www.cache-22.co.uk www.incutio.com From cm68 at st-andrews.ac.uk Fri Aug 22 03:55:22 2003 From: cm68 at st-andrews.ac.uk (Chris MacKenzie) Date: Fri, 22 Aug 2003 09:55:22 +0100 Subject: [thelist] CSS font-size Formatting Message-ID: Hi, Can any one tell me why "smalltextbold" won't render correctly in a version of IE 6. The definition of smalltextbold generally resides in my css file.
You must complete on-line pre-advising which requires you to check and submit your personal details.
.smalltextbold { font-family: arial, helvetica, sans-serif; font-size: 75%; color: #000000; font-style: normal; font-weight: bold; } Many thanks. Chris From toby at rsux.com Fri Aug 22 07:50:04 2003 From: toby at rsux.com (Tobyn Baugher) Date: Fri, 22 Aug 2003 08:50:04 -0400 Subject: [thelist] strip html etc In-Reply-To: References: Message-ID: <20030822125004.GA24558@mireille.int.rsux.com> On Thu, Aug 21, 2003 at 09:18:00PM -0500, george donnelly wrote: > My current task is to separate the content from the presentation in about > 5000+ html pages so that it can be dumped into the new site. ACK! Boy am I glad I'm not the one having to do this! (sorry :P) > Does anyone have any suggestions or experiences with this kind of task? Can > anyone point me to any good practices for this? There's always the possibility that all the docs were written by the same tool with the exact same layout. If that's the case then pattern matching is your friend and a good Perl/Python/Awk programmer could likely do the work you need in under an hour. Most likely, however, you've got two options: 1) Pipe your HTML through "lynx -dump" on a UNIX(/CYGWIN) machine and see if the output is more easily parseable than the HTML itself. HTML::Parser in Perl might also be more helpful. or 2) Go through the documents by hand and remember for the future that this is why XHTML and CSS2 need to become the standard NOW. Wish I could be of more assistance. This is one of those things that seems deceptively simple until you actually have to do it. -Tobyn -- Tobyn Baugher AIM: dieplzkthxbye ICQ: 14281524 IRC: toby at EFnet From toby at rsux.com Fri Aug 22 07:59:23 2003 From: toby at rsux.com (Tobyn Baugher) Date: Fri, 22 Aug 2003 08:59:23 -0400 Subject: [thelist] MySQL/website on different servers In-Reply-To: <3F45F746.30806@webglobe.sk> References: <3F45F746.30806@webglobe.sk> Message-ID: <20030822125923.GB24558@mireille.int.rsux.com> On Fri, Aug 22, 2003 at 12:58:14PM +0200, Marek Kilimajer wrote: > but most hosts does not allow connections from outside, only localhost. Indeed. Furthermore, even if you can connect to the other host's database servers, bear in mind that you're having to go all the way across the Internet for your data, then have to go all the way back again to display it to the client. In other words, performance is going to SUCK. Not only that, but your site will be less reliable because it depends on both hosts being up at the same time rather than just the one, and any routing issues between the two are going to show up as long response times for all your visitors. Plus tech support for neither company will want to touch your site with a ten foot pole and will always tell you it's the other hosting company's fault. -Tobyn -- Tobyn Baugher AIM: dieplzkthxbye ICQ: 14281524 IRC: toby at EFnet From Kath at cyber-kat.com Fri Aug 22 08:10:28 2003 From: Kath at cyber-kat.com (Kath) Date: Fri, 22 Aug 2003 09:10:28 -0400 Subject: [thelist] strip html etc Message-ID: <3.0.32.20030822091026.0126c200@optonline.net> At 09:18 PM 8/21/2003 -0500, george donnelly wrote: >My current task is to separate the content from the presentation in about >5000+ html pages so that it can be dumped into the new site. > >Does anyone have any suggestions or experiences with this kind of task? Can >anyone point me to any good practices for this? > Homesite has a function to strip all HTML tags. You highlight a section or "select all" then right click. Chose selection, then strip tags. It will strip anchor tags, so if you want to preserve the links, you have to work around them. With 5000 pages, this would still be very time consuming. There may be a program out there with a batch processing function, but I'm not aware of any. HTH Kath ... "A patriot must always be ready to defend his country against its government." -Edward Abbey, naturalist and author (1927-1989) Established 1995 --> www.cyber-kat.com From mindmachine at hotmail.com Fri Aug 22 08:25:05 2003 From: mindmachine at hotmail.com (Og) Date: Fri, 22 Aug 2003 09:25:05 -0400 Subject: [thelist] mySQL and the phantom database. References: <000b01c3684f$a4fcec90$6401a8c0@ralphxorostodu> Message-ID: Cheers everyone. I managed to get down to the command prompt stuff (which is really refreshing because I'm a DOS baby circa 1976). Thanks for all the pointers and references, this migration into PHP and mySQL would have been 3 times as hard without this list, thanks again. Cheers ----- Original Message ----- From: "Ralph Guzman" To: Sent: Thursday, August 21, 2003 9:49 PM Subject: RE: [thelist] mySQL and the phantom database. > Paul, > > Start by installing phpMyAdmin, a web based utility to manage your mySQL > database: > > http://www.phpmyadmin.net/ > > Then start learning using various resources available. Here are a few to > get started with: > > http://www.devarticles.com/cats/18 > http://www.devarticles.com/cats/9 > http://www.zend.com/developers.php > http://www.devshed.com/Server_Side/PHP > http://www.phpcomplete.com/ > http://www.hotscripts.com/PHP/Tips_and_Tutorials/index.html > > and don't forget the manuals. Both PHP and MySQL are well documented: > > http://www.php.net/manual/en/ > http://www.mysql.com/doc/en/index.html > > Also, if you haven't already sign up for the php general mailing lists: > > http://www.php.net/mailing-lists.php > > Ralph > > -----Original Message----- > From: thelist-bounces at lists.evolt.org > [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Og > Sent: Thursday, August 21, 2003 1:40 PM > To: thelist at lists.evolt.org > Subject: [thelist] mySQL and the phantom database. > > PHP and mySQL are living comfortably in their new home. But they want > to have a database, I didn't know what to tell them. I searched > numerous sites and such, lots of info on database management, I even > have software to work with the database once it's here. But unless > there is a DB stork I'm at a loss. How do I create that first baby > DB?.. PHP and mySQL are counting on me. Any help would be appreciated. > Thanks to all. > ;) > > Cheers > > Paul J Maguire > CEO Ogmatter > www.ogmatter.com > info at ogmatter.com > > "Ogmatter In mind" > > Note : All outgoing emails have been scanned with Norton Anti-Virus > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! > > > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! > From jyee at vt.edu Fri Aug 22 09:01:49 2003 From: jyee at vt.edu (Jackson Yee) Date: Fri, 22 Aug 2003 10:01:49 -0400 Subject: [thelist] Mod Rewrite Message-ID: <3F5C6A6D@zathras> I haven't seen RewriteRule used to match domain names rather than path information before, so that might be what your issue is. Try RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^www\.domain\.com$ RewriteCond %{REQUEST_URI} !.*mainsite.* RewriteRule (.*) /mainsite/$1 [R] RewriteCond %{HTTP_HOST} ^domain\.com$ RewriteCond %{REQUEST_URI} !.*mainsite.* RewriteRule (.*) /mainsite/$1 [R] You can also use the RewriteLog and RewriteLogLevel directives to get a better idea of what is happening as you make each request. Regards, Jackson Yee jacksonyee at vt.edu >===== Original Message From RLivsey ===== >www.domain.com/123/456 -> www.domain.com/mainsite/123/456 >domain.com/123/456 -> domain.com/mainsite/123/456 > >This is what I have got to so far: > >#--- start .htaccess ---# >RewriteEngine on >RewriteCond %{HTTP_HOST} ^www\.domain\.com$ >RewriteRule ^www\.domain\.com/(.*) /mainsite/$1 > >RewriteCond %{HTTP_HOST} ^domain\.com$ >RewriteRule ^domain\.com/(.*) /mainsite/$1 >#--- end .htaccess ---# From info at gwcreative.com Fri Aug 22 09:18:30 2003 From: info at gwcreative.com (Gregory Wostrel) Date: Fri, 22 Aug 2003 10:18:30 -0400 Subject: [thelist] Unreliable borders In-Reply-To: Message-ID: <8133C8D5-D4AB-11D7-B8E2-0003938680C8@gwcreative.com> On Thursday, August 21, 2003, at 11:35 PM, Stuart Young wrote: > don't know, but for cross-browser differences I would look at the > Master Compatibility Chart, which should hopefully explain why some > CSS properties do different things in some browsers. > > http://devedge.netscape.com/library/xref/2003/css-support/css1/ > mastergrid.html Stuart, That is a great list to be able to refer to. But there isn't a legend to figure out what the Y, B, N, Q and P mean. I figure that Y is yes, N is no, P is pending maybe(?) but B and Q? Can you shed any light on that? Gregory Wostrel gwcreative http://www.gwcreative.com/ gw at gwcreative.com 401.286.9228 Communications and the Art of Simplicity From dianesoini at earthlink.net Fri Aug 22 09:29:01 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Fri, 22 Aug 2003 07:29:01 -0700 Subject: [thelist] RE: PHP & Accessibility In-Reply-To: <200308212143.19Q3Mh2kk3NZFlr0@killdeer> Message-ID: http://www.knowbility.org I doubt that it is 100% accessible, but I went to a talk given by one of the developers who wrote a tag library for this web site. The tag library was intended to make it easy for the disabled people who actually do this web site to do it without having to know a lot about HTML. (Because it is a non-profit that uses its clients as volunteer workers.) Anyway, if this web site is considered accessible to people for whom accessibility is primary, then I think it is a pretty good representation of what you can get away with. D On Thursday, August 21, 2003, at 09:43 PM, thelist-request at lists.evolt.org wrote: > >> P.S. Is there any sites you can think of off hand that are 100% >> accesible, >> links would be greatly appreciated. From joshua at waetech.com Fri Aug 22 09:31:15 2003 From: joshua at waetech.com (Joshua Olson) Date: Fri, 22 Aug 2003 10:31:15 -0400 Subject: [thelist] Friday Freebe Message-ID: <002801c368ba$10da65e0$0300a8c0@client1> As I was searching for information about currency conversion and representation I found the following (apparently) great link from IBM. http://www-3.ibm.com/software/globalization/topics/locales/index.jsp I suppose this is IBM's way of saying "Hey, we know a lot about this stuff... use our tools since the little guys have a lot of catching up to do" I suppose they're right. There is a lot to it. <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168 From jay.blanchard at niicommunications.com Fri Aug 22 09:42:36 2003 From: jay.blanchard at niicommunications.com (Jay Blanchard) Date: Fri, 22 Aug 2003 09:42:36 -0500 Subject: [thelist] strip html etc Message-ID: [snip] At 09:18 PM 8/21/2003 -0500, george donnelly wrote: >My current task is to separate the content from the presentation in about >5000+ html pages so that it can be dumped into the new site. > [/snip] If you have PHP you can use the strip_tags() function HTH From R.Livsey at cache-22.co.uk Fri Aug 22 09:43:25 2003 From: R.Livsey at cache-22.co.uk (RLivsey) Date: Fri, 22 Aug 2003 15:43:25 +0100 Subject: [thelist] Mod Rewrite In-Reply-To: <3F5C6A6D@zathras> References: <3F5C6A6D@zathras> Message-ID: <3F462C0D.4070106@cache-22.co.uk> Jackson Yee wrote: > I haven't seen RewriteRule used to match domain names rather than path > information before, so that might be what your issue is. > > You can also use the RewriteLog and RewriteLogLevel directives to get a better > idea of what is happening as you make each request. Thanks, that got me on the right track and it's working now. Heres what I ended up with: ### start mod rewrite RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [OR] RewriteCond %{HTTP_HOST} ^domain\.com$ RewriteRule (.*) /mainsite/$1 [L] ### end mod rewrite For some reason whenever I enable logging, I got 500 server errors. Not sure why, will dig through the Apache error logs at some point to track that down, but it's not urgent any more :o) Thanks again for the help. -- R.Livsey Incutio Web Developer [ PHP | Perl | Java | C# ] www.cache-22.co.uk www.incutio.com From Jono at brookgroup.com Fri Aug 22 09:41:46 2003 From: Jono at brookgroup.com (Jono Young) Date: Fri, 22 Aug 2003 10:41:46 -0400 Subject: [thelist] strip html etc In-Reply-To: <20030822125004.GA24558@mireille.int.rsux.com> Message-ID: I am not sure if this will help, but here's a possible solution, or two: 1. Text Edit Plus allows you to run a script that will remove HTML from a document (Scripts>Convert>HTML->Mac) I am running Text Edit Plus on a Mac, I am not sure if there's a PC equivalent or version? 2. There's an application called WebWacker, which grabs websites and content, it may have an option to do what you are looking for? It is made by BlueSquirrel. I think WebWacker may have been replaced by Grap-a-Site, but it does the same thing. On 8/22/03 8:50 AM, "Tobyn Baugher" wrote: > On Thu, Aug 21, 2003 at 09:18:00PM -0500, george donnelly wrote: >> My current task is to separate the content from the presentation in about >> 5000+ html pages so that it can be dumped into the new site. > > ACK! Boy am I glad I'm not the one having to do this! (sorry :P) > >> Does anyone have any suggestions or experiences with this kind of task? Can >> anyone point me to any good practices for this? > > There's always the possibility that all the docs were written by the > same tool with the exact same layout. If that's the case then pattern > matching is your friend and a good Perl/Python/Awk programmer could > likely do the work you need in under an hour. > > Most likely, however, you've got two options: > > 1) Pipe your HTML through "lynx -dump" on a UNIX(/CYGWIN) machine and > see if the output is more easily parseable than the HTML itself. > HTML::Parser in Perl might also be more helpful. > > or > > 2) Go through the documents by hand and remember for the future that > this is why XHTML and CSS2 need to become the standard NOW. > > Wish I could be of more assistance. This is one of those things that > seems deceptively simple until you actually have to do it. > > -Tobyn -- Jono Young Designer/Illustrator Brook Group, LTD 8231 Main Street Ellicott City, MD 21043 T: 410-465-7805 xt: 16 From nemesis at nemesis1.f2o.org Fri Aug 22 10:09:20 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Fri, 22 Aug 2003 11:09:20 -0400 Subject: [thelist] Pradheep :: [
Tag] In-Reply-To: <3F467FD6.1060706@naturesoft.net> References: <3F467FD6.1060706@naturesoft.net> Message-ID: <3F463220.5050807@nemesis1.f2o.org> pradheep wrote: > hi > > how do i make color to the
tag which should display in Netscape? > What version of Netscape? http://nemesis1.f2o.org/tnt_t.php?tname=Coloring%20%20a%20horizontal%20rule -- The Nemesis Project http://nemesis1.f2o.org One Stop CSS From Ed at ComSimplicity.com Fri Aug 22 10:13:40 2003 From: Ed at ComSimplicity.com (Ed McCarroll) Date: Fri, 22 Aug 2003 08:13:40 -0700 Subject: [thelist] CSS font-size Formatting In-Reply-To: Message-ID: > Can any one tell me why "smalltextbold" won't render correctly > in a version of IE 6. > page demo is http://www.st-andrews.ac.uk/~web-reg/test_3_pg.htm. Here's what it looks like in my IE6 (Win2K). http://www.comsimplicity.com/screenshots/You_Must_Complete.gif What's wrong with it? (And which "You must complete..." do you mean?) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ed McCarroll MailTo:Ed at ComSimplicity.com ComSimplicity (310) 838-4330 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From seyon at delime.com Fri Aug 22 10:24:09 2003 From: seyon at delime.com (Marc Seyon) Date: Fri, 22 Aug 2003 11:24:09 -0400 Subject: [thelist] Unreliable borders In-Reply-To: <8133C8D5-D4AB-11D7-B8E2-0003938680C8@gwcreative.com> References: Message-ID: <4.2.0.58.20030822112315.02285dd8@mail.delime.com> Message from Gregory Wostrel (8/22/2003 10:18 AM) >On Thursday, August 21, 2003, at 11:35 PM, Stuart Young wrote: > >> don't know, but for cross-browser differences I would look at the >>Master Compatibility Chart, which should hopefully explain why some >>CSS properties do different things in some browsers. >> >>http://devedge.netscape.com/library/xref/2003/css-support/css1/ >>mastergrid.html > > >Stuart, > >That is a great list to be able to refer to. But there isn't a legend >to figure out what the Y, B, N, Q and P mean. I figure that Y is yes, N >is no, P is pending maybe(?) but B and Q? Can you shed any light on >that? Hey Gregory, P = Partial B = Buggy Q = Quirky The asterisk next to the item links to a brief explanation. -m -- Carnival 2003 in all its photographic glory. Playyuhself.com http://www.playyuhself.com/ From nemesis at nemesis1.f2o.org Fri Aug 22 10:38:41 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Fri, 22 Aug 2003 11:38:41 -0400 Subject: [thelist] strip html etc In-Reply-To: References: Message-ID: <3F463901.1000703@nemesis1.f2o.org> george donnelly wrote: > > My current task is to separate the content from the presentation in about > 5000+ html pages so that it can be dumped into the new site. > If you have php you can use fgetss(). http://www.devshed.com/Server_Side/PHP/File_Manipulation2/page2.html -- The Nemesis Project http://nemesis1.f2o.org One Stop CSS From list at zettai.net Fri Aug 22 10:47:29 2003 From: list at zettai.net (george donnelly) Date: Fri, 22 Aug 2003 10:47:29 -0500 Subject: [thelist] strip html etc In-Reply-To: <20030822125004.GA24558@mireille.int.rsux.com> Message-ID: [Tobyn Baugher wrote (toby at rsux.com) on 8/22/03 7:50 AM] > On Thu, Aug 21, 2003 at 09:18:00PM -0500, george donnelly wrote: >> My current task is to separate the content from the presentation in about >> 5000+ html pages so that it can be dumped into the new site. > > ACK! Boy am I glad I'm not the one having to do this! (sorry :P) yeah i'm sorry too :( >> Does anyone have any suggestions or experiences with this kind of task? Can >> anyone point me to any good practices for this? > > There's always the possibility that all the docs were written by the > same tool with the exact same layout. If that's the case then pattern > matching is your friend and a good Perl/Python/Awk programmer could > likely do the work you need in under an hour. yes, there is a lot of pattern matching that can be done. I was hoping against hope someone might know of a tool out there for this so i wouldn't have to write it myself. > Most likely, however, you've got two options: > > 1) Pipe your HTML through "lynx -dump" on a UNIX(/CYGWIN) machine and > see if the output is more easily parseable than the HTML itself. > HTML::Parser in Perl might also be more helpful. good idea. i'll try that. > or > > 2) Go through the documents by hand and remember for the future that > this is why XHTML and CSS2 need to become the standard NOW. heh, i've known that for years. the Zope based system I'm building/implementing for them will not *allow* them to screw themselves up this bad again. ;) > Wish I could be of more assistance. This is one of those things that > seems deceptively simple until you actually have to do it. right, thanks for your suggesstions tho. <--> george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting" Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ MSN: zettainet at hotmail.com ~ ICQ: 51907738 From evolt at maxwwwebster.com Fri Aug 22 11:35:15 2003 From: evolt at maxwwwebster.com (Brad Farris) Date: Fri, 22 Aug 2003 09:35:15 -0700 Subject: [thelist] CSS font-size Formatting In-Reply-To: Message-ID: Hi, Chris - When I mocked up your situation here, I found that I was able to make your "smalltextbold" class work on the second span once I removed the font-size definition from the body selector, so I'd say that's probably what the issue is. -Brad -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Chris MacKenzie Sent: Friday, August 22, 2003 5:36 AM To: thelist at lists.evolt.org Subject: RE: [thelist] CSS font-size Formatting Hi Rudy, page demo is http://www.st-andrews.ac.uk/~web-reg/test_3_pg.htm. Thanks for looking at this for me. Chris -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of rudy Sent: 22 August 2003 13:14 To: thelist at lists.evolt.org Subject: Re: [thelist] CSS font-size Formatting > Can any one tell me why "smalltextbold" won't render correctly > in a version of IE 6. which version? just kidding it depends on your definition of "correctly" the size of the font may be too small for you to notice the difference there could also be other reasons post the url of the page so we can have a look if it's confidential, then make a demo page rudy -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From alexj_list at agrussell.com Fri Aug 22 11:50:07 2003 From: alexj_list at agrussell.com (Alex Jones) Date: Fri, 22 Aug 2003 11:50:07 -0500 Subject: [thelist] Basic PHP Shopping Cart Message-ID: <5.1.0.14.2.20030822113953.00b711c8@bifrost.agrussell.com> Howdy all, The CMS that we've installed and added content to doesn't appear to meet our unique needs on the shopping cart side of things. At this point I have a couple of options: write a cart from scratch or choose a third party cart. As we are on a very tight deadline I am exploring the idea of a third party cart. I would truly appreciate your recommendations for a simple cart. I do not want/need a cart that does product management as that is already covered by our CMS. Requirements: - PHP/MySQL - Easily customized output - Ability to define simple shipping logic: local vs. international & below a certain price get free shipping - Ability to provide multiple shipping options - Ability to define tax rate based on destination state (U.S.) - VAT is not needed - Ability to have three full addresses (shipping, billing, delivery) Basically I want the user to click a standard submit button on one of our product pages to add items to the cart - I would prefer to send the variables via POST. The form is to be e-mailed (within our network) so I do not need any form of payment gateways. Thanks, Alex From sam at sam-i-am.com Fri Aug 22 12:32:05 2003 From: sam at sam-i-am.com (Sam) Date: Fri, 22 Aug 2003 12:32:05 -0500 Subject: [thelist] regular expressions in homesite or dreamweaver? In-Reply-To: <000c01c3689e$97064d80$1200a8c0@david> References: <000c01c3689e$97064d80$1200a8c0@david> Message-ID: <3F465395.2060804@sam-i-am.com> > actually you should replace with \1 (not $1). this is one of the ways > homesite's regexps are different from "real" regexps :-) When using regular expressions in Homesite: > actually you should replace with \1 (not $1). this is one of the ways > homesite's regexps are different from "real" regexps :-) (says Dave Kaufman) You also usually need to use the literal space character e.g (for newline) or for space. I've not had much luck with \s in Homesite... but if you say it works I'll try it again. Get your pattern to match first with an Extended Find. Then on a test page do the Extended Replace to check the results. Sounds obvious but a good habit to get into. It's the measure twice cut once rule for any batch replacing. (only not as catchy :) In homesite beware that the Find Where settings are remembered from last use, so it's easy to mistakenly apply what was intended to be a document-only replacement to a whole tree of files if you're not careful I'll make this a tip - owed for my whining about viruses the other day. Sam From info at gwcreative.com Fri Aug 22 12:44:53 2003 From: info at gwcreative.com (Gregory Wostrel) Date: Fri, 22 Aug 2003 13:44:53 -0400 Subject: [thelist] Unreliable borders In-Reply-To: <4.2.0.58.20030822112315.02285dd8@mail.delime.com> Message-ID: <55E19E26-D4C8-11D7-9609-0003938680C8@gwcreative.com> On Friday, August 22, 2003, at 11:24 AM, Marc Seyon wrote: >> Stuart, >> >> That is a great list to be able to refer to. But there isn't a legend >> to figure out what the Y, B, N, Q and P mean. I figure that Y is yes, >> N >> is no, P is pending maybe(?) but B and Q? Can you shed any light on >> that? > > Hey Gregory, > > P = Partial > B = Buggy > Q = Quirky > > The asterisk next to the item links to a brief explanation. > > -m Oh, Duh. not too sharp today, I'm afraid. Thanks Gregory Wostrel gwcreative http://www.gwcreative.com/ gw at gwcreative.com 401.286.9228 Communications and the Art of Simplicity From cvos at netpaths.net Fri Aug 22 12:51:11 2003 From: cvos at netpaths.net (Cayley Vos) Date: Fri, 22 Aug 2003 10:51:11 -0700 Subject: [thelist] [ot] Free stock quote script Message-ID: i am looking to embed a stock quote (NASAQ, NYSE and S&P) in a website. Is there free code, similar to the news features offered by moreover.com to embed this in a website? im looking to do it in PHP, not javaScript, or worse Java. When making search engine friendly websites, don't put your keyword phrases in invisible places such as meta tags. Put them in the title tags and main body copy. Search engines only index what users can see - put your keywords out in the open. Cayley Vos, Principal office: 310-372-3086 cell: 360-303-0150 http://netpaths.net _______________________________________________________ web hosting | search engine marketing | web development From sam at sam-i-am.com Fri Aug 22 12:51:15 2003 From: sam at sam-i-am.com (Sam) Date: Fri, 22 Aug 2003 12:51:15 -0500 Subject: [thelist] strip html etc In-Reply-To: References: Message-ID: <3F465813.8030205@sam-i-am.com> I'm working through a similar problem on my site. My approach was to: Inventory the pages: I wrote a perl script to crawl the directory tree and output filename, extension and title to a tab delimited file. I imported that into Excel, and whent through removing obvious duplicates, orphans, backups, tmp files etc. The inventory is key. You can track progress, filter and sort and so on. All my subsequent scripts accepted a filelist which I got by filtering in excel and copying the filename column to a text file. I then re-factored that original script to match one of a few templates i'd used over the years. This gave me a group of files that I was fairly confident I could extract content from fairly cleanly. I then went through the remainder to see what was up. Of the 500 or so "html" files I started with, I whittled it down to about 50 that would need manual content extranction. When I've done similar work for a client, at this point you can priorise. You might shoot for a full, flawless extraction/migration for the top priority pages, and maybe put a new header and footer on the low priority pages. My extraction scripts were fairly blunt tools - quick throwaway perl scripts with pattern matches to extract content from a known template. In my case I moved all content directly into an interim template that was a load of id'd divs for the different content areas. When I finally had a final html template(s), migration from the interim was trivial. This kind of approach might work for a one-off, one-person effort. If you need to distribute the work or hand over your tools afterwards I guess you'd have to be a little less informal and actually write nice code :) I think my main advice would be to not try and write one script to do it all in one go. Allow for manual intervention at each step of the way. Even with 5000 files, some tasks are better handled by hand than programatically. Sam george donnelly wrote: > My current task is to separate the content from the presentation in about > 5000+ html pages so that it can be dumped into the new site. From bedouglas at earthlink.net Fri Aug 22 11:39:21 2003 From: bedouglas at earthlink.net (bruce) Date: Fri, 22 Aug 2003 09:39:21 -0700 Subject: [thelist] WebSite CMS Tools/Apps In-Reply-To: <3.0.32.20030822091026.0126c200@optonline.net> Message-ID: <014501c368cb$f0c18510$0301a8c0@Mesa.com> Hi, We're currently evaluating/investigating web site CMS tools. Basically, we're interested in tools to allow us to more efficiently develop web sites in a consistent manner. The CMS/Tool should be flexible in letting us manipulate/create the look/feel of the site. The tool should also be able to accommodate more than just "newsletter" formats. In other words, we should be able to do pretty much whatever we need with regards to the look/feel of the site. And of course, it needs to support the usual PHP/Perl/MySql/Postgres/Etc... Any thoughts/opinions will be appreciated. We're pretty sure that others are also interested in this topic. We're interested in hearing from anyone with real world experience in using the apps. We'd also be interested in any pointers/assistance/articles that could help in ranking the apps, or assessing their strengths/weaknesses.. Thanks Bruce Douglas bedouglas at earthlink.net (925) 866-2790 From scsmith at tamu.edu Fri Aug 22 15:03:39 2003 From: scsmith at tamu.edu (Stephanie Smith) Date: Fri, 22 Aug 2003 15:03:39 -0500 Subject: [thelist] strip html etc In-Reply-To: <20030822125004.GA24558@mireille.int.rsux.com> Message-ID: Detagger might work: http://www.jafsoft.com/detagger/ Caveats: it is not free, and I have not tried it. :) Stephanie C. Smith Web Communications Specialist TAMUS Health Science Center http://www.tamushsc.edu/ scsmith at tamu.edu From damiencola at wanadoo.fr Fri Aug 22 15:24:35 2003 From: damiencola at wanadoo.fr (Damien COLA) Date: Fri, 22 Aug 2003 22:24:35 +0200 Subject: [thelist] WebSite CMS Tools/Apps In-Reply-To: <014501c368cb$f0c18510$0301a8c0@Mesa.com> Message-ID: <000701c368eb$680ea7a0$a000a8c0@ELECTRA> I personally am looking for the best MINI CMS system. One simple system that would have an admin section to enter : title, subtitle, text and 1 or several photos. Then for the presentation side of things, something as simple as including a PHP file into the site's php pages. Or as a javascript solution with document.write() (not good but easier to install on any site, not only the one where the app is hosted) What CMS app can be used that way ? Cheers, Damien COLA From ralph at nqionline.com Fri Aug 22 16:08:33 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Fri, 22 Aug 2003 14:08:33 -0700 Subject: [thelist] Basic PHP Shopping Cart In-Reply-To: <5.1.0.14.2.20030822113953.00b711c8@bifrost.agrussell.com> Message-ID: <000701c368f1$8ef87340$6401a8c0@ralphxorostodu> Alex, If you are looking for a standalone shopping cart have a look at Oscommerce: http://www.oscommerce.com I think it has all the features you need and it also has a big contribution list where you can find updates or addons: http://www.oscommerce.com/community/contributions If you are looking for a CMS with shopping cart then have a look at ezPublish. http://www.ez.no/ Ralph -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Alex Jones Sent: Friday, August 22, 2003 9:50 AM To: thelist at lists.evolt.org Subject: [thelist] Basic PHP Shopping Cart Howdy all, The CMS that we've installed and added content to doesn't appear to meet our unique needs on the shopping cart side of things. At this point I have a couple of options: write a cart from scratch or choose a third party cart. As we are on a very tight deadline I am exploring the idea of a third party cart. I would truly appreciate your recommendations for a simple cart. I do not want/need a cart that does product management as that is already covered by our CMS. Requirements: - PHP/MySQL - Easily customized output - Ability to define simple shipping logic: local vs. international & below a certain price get free shipping - Ability to provide multiple shipping options - Ability to define tax rate based on destination state (U.S.) - VAT is not needed - Ability to have three full addresses (shipping, billing, delivery) Basically I want the user to click a standard submit button on one of our product pages to add items to the cart - I would prefer to send the variables via POST. The form is to be e-mailed (within our network) so I do not need any form of payment gateways. Thanks, Alex -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From sblanchard at octigon.com Fri Aug 22 16:22:17 2003 From: sblanchard at octigon.com (Scott Blanchard) Date: Fri, 22 Aug 2003 16:22:17 -0500 Subject: [thelist] capturing key combination CTRL+8 with Dom Message-ID: <000801c368f3$770454a0$9301a8c0@scott> I need to fire a function when someone enters CTRL+8. I can do it in IE fine, but Netscape 7 does not respond. Here's my code: document.onkeypress=checkHandles; function checkHandles(){ if(window.event.ctrlKey && window.event.keyCode == 56){ alert("bingo"); } } Is there a way to do this that is cross platform and works with all getElementById browsers ??? From sam at sam-i-am.com Fri Aug 22 16:52:03 2003 From: sam at sam-i-am.com (Sam) Date: Fri, 22 Aug 2003 16:52:03 -0500 Subject: [thelist] strip html etc In-Reply-To: <3F465813.8030205@sam-i-am.com> References: <3F465813.8030205@sam-i-am.com> Message-ID: <3F469083.5010807@sam-i-am.com> > I think my main advice would be to not try and write one script to do it > all in one go. Allow for manual intervention at each step of the way. > Even with 5000 files, some tasks are better handled by hand than > programatically. > > Sam I'd consider stripping all html a last resort. And if you do, remember there's some tags in there that you probably want to keep, like
, etc. .. If you strip all tags, you commit yourself to manually tagging the content again, file by file. Even in the best case you'll likely have to visit each file at some point, but this is to be avoided IMO. My earlier email assumed a working knowledge of perl or some other scripting language for doing text processing. Even if you don't have that at your disposal I'll stick by my advice - don't try and get one tool to do it all. Dreamweaver might be your friend for this kind of thing. It's search and replace tools, commands and so on are very powerful - if a little slow. If you get a find/replace that works for you, you can record it as a command, then run that command on a set of files. Sam From joshua at waetech.com Fri Aug 22 17:07:18 2003 From: joshua at waetech.com (Joshua Olson) Date: Fri, 22 Aug 2003 18:07:18 -0400 Subject: [thelist] Basic PHP Shopping Cart References: <5.1.0.14.2.20030822113953.00b711c8@bifrost.agrussell.com> Message-ID: <00f401c368f9$c657e3e0$0300a8c0@client1> ----- Original Message ----- From: "Alex Jones" <alexj_list at agrussell.com> Sent: Friday, August 22, 2003 12:50 PM > - Ability to have three full addresses (shipping, billing, delivery) I'm curious, why would you need shipping and delivery address. Would they not be the same thing? Which one drives the sales tax calculation? <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168 From ralph at nqionline.com Fri Aug 22 17:46:30 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Fri, 22 Aug 2003 15:46:30 -0700 Subject: [thelist] WebSite CMS Tools/Apps In-Reply-To: <014501c368cb$f0c18510$0301a8c0@Mesa.com> Message-ID: <000f01c368ff$3dd53d00$6401a8c0@ralphxorostodu> Bruce, I've been doing my research the last few weeks looking for a CMS tool with a development framework. I've only evaluated PHP/MySQL based CMS and I've narrowed down my search to ezPublish3 (http://www.ez.no/), Typo3 (http://typo3.com/). As a standalone framework, I am also looking into php.MVC (http://www.phpmvc.net/) based on Jakarta Struts. I still have not decided which to use, however I am leaning toward ezPublish 3. From what I've seen, it provides a good development framework and has a clean backend admin interface. Since v3 is a rewrite of previous v2, there is not too much documentation however they have enough documentation for you to get started. If you would like more info on ezPublish you can also read this article: http://www.sitepoint.com/article/1157 Typo 3 provides a lot of functionality, perhaps more than ezPublish. It's admin interface is based entirely on DHTML, while some people might prefer this approach, I found it a bit cumbersome. I want a CMS solution that will serve as an abstraction layer, so the editors can edit/add/update content, designers change look and feel using templates, and where programmers can easily write and implement modules. Typo3 is a good option, however I think site management is not for the average user. If you are open to solutions based on something other than PHP then you may want to look at ZOPE written in Python: http://www.zope.org/ -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of bruce Sent: Friday, August 22, 2003 9:39 AM To: thelist at lists.evolt.org Subject: [thelist] WebSite CMS Tools/Apps Hi, We're currently evaluating/investigating web site CMS tools. Basically, we're interested in tools to allow us to more efficiently develop web sites in a consistent manner. The CMS/Tool should be flexible in letting us manipulate/create the look/feel of the site. The tool should also be able to accommodate more than just "newsletter" formats. In other words, we should be able to do pretty much whatever we need with regards to the look/feel of the site. And of course, it needs to support the usual PHP/Perl/MySql/Postgres/Etc... Any thoughts/opinions will be appreciated. We're pretty sure that others are also interested in this topic. We're interested in hearing from anyone with real world experience in using the apps. We'd also be interested in any pointers/assistance/articles that could help in ranking the apps, or assessing their strengths/weaknesses.. Thanks Bruce Douglas bedouglas at earthlink.net (925) 866-2790 -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From nemesis at nemesis1.f2o.org Fri Aug 22 18:45:01 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Fri, 22 Aug 2003 19:45:01 -0400 Subject: [thelist] WebSite CMS Tools/Apps In-Reply-To: <000f01c368ff$3dd53d00$6401a8c0@ralphxorostodu> References: <000f01c368ff$3dd53d00$6401a8c0@ralphxorostodu> Message-ID: <3F46AAFD.7070306@nemesis1.f2o.org> > > We're currently evaluating/investigating web site CMS tools. Basically, > we're interested in tools to allow us to more efficiently develop web > sites > in a consistent manner. The CMS/Tool should be flexible in letting us > manipulate/create the look/feel of the site. The tool should also be > able to > accommodate more than just "newsletter" formats. In other words, we > should > be able to do pretty much whatever we need with regards to the look/feel > of > the site. And of course, it needs to support the usual > PHP/Perl/MySql/Postgres/Etc... Have you looked at phpWebsite. It is a complete tool along with a lot of plug- ins moduals. http://phpwebsite.appstate.edu/ Gary -- The Nemesis Project http://nemesis1.f2o.org One Stop CSS From genyus at ingenyus.net Fri Aug 22 19:13:29 2003 From: genyus at ingenyus.net (Gary McPherson) Date: Sat, 23 Aug 2003 01:13:29 +0100 Subject: [thelist] regular expressions in homesite or dreamweaver? In-Reply-To: <sf465f92.036@gwia1.unitec.ac.nz> Message-ID: <001601c3690b$6209ec00$0300a8c0@ingenyus.net> > Thanks Gary, > > once I made sure I ticked Regular expressions on !! :-) > this worked, but it replaced the URL with $1 !! > > I was using Homesite 4.5. (actually CF Studio 4.5) > Will try with CF5 and various Dreamweaver versions at home, > > BTW also, what was the /s for after the first href? > href="#"\sonClick I had to remove this to get it to work. Seems Dreamweaver and Homesite handle this differently as I tested in Dreamweaver MX before posting my reply and it worked as intended. the \s represents the space between the href and onclick attributes. Some suggestions have been posted for use in Homesite, perhaps they'll be of use to you, otherwise give it a whirl in Dreamweaver and see how that pans out for you. All the best, Gary From todd at nhive.com Fri Aug 22 13:17:22 2003 From: todd at nhive.com (Todd Ballard) Date: Fri, 22 Aug 2003 13:17:22 -0500 Subject: [thelist] Setting up PHP & mySQL In-Reply-To: <NHBBJMGBIKDCKHJPABFJMEDCEPAA.jsWalter@torres.ws> Message-ID: <000001c368d9$a3525620$a824af18@toddb> I use phpdev on xp platform works great. PHP4.06 / Apache1.3.20 / ActivePerl5.6 / MySQL3.23 / phpMyAdmin 2.02 and more. Possible upgrade to php 4.23 http://www.firepages.com.au/dev4.htm From khallman at wrack.org Fri Aug 22 20:51:45 2003 From: khallman at wrack.org (Kelly Hallman) Date: Fri, 22 Aug 2003 18:51:45 -0700 (PDT) Subject: [thelist] regular expressions in homesite or dreamweaver? In-Reply-To: <000c01c3689e$97064d80$1200a8c0@david> Message-ID: <Pine.LNX.4.44.0308221822100.24476-100000@clove.wrack.org> On Fri, 22 Aug 2003, David Kaufman wrote: > actually you should replace with \1 (not $1). this is one of the ways > homesite's regexps are different from "real" regexps :-) I assume the smiley denotes sarcasm? \1 and $1 are both common, depending on the environment. perl, for instance, uses \1 to replace paren matches in a substitution regex but matched parens are assigned to $1, $2, etc when a match is made. Regex implementations in most languages use \1, I've mostly seen $1 in desktop applications that have regex features. I don't know if one method is accepted as more correct, but I've always thought \1 was preferred to $1. I would consider perl a good measuring stick for a 'real' regex engine. In perl I learned it as \1, HOWEVER: It appears as if you can substitute with $1 in perl also, probably because it assigns the $1 after the match but before the substitution. If that assumption is true, then I'd say \1 is preferred as a true regex substitution in perl since $1 is merely interpolating the value of the scalar $1, so it'd be the same as substituting any variable available. -- Kelly Hallman http://wrack.org/ From dianesoini at earthlink.net Fri Aug 22 21:36:43 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Fri, 22 Aug 2003 19:36:43 -0700 Subject: [thelist] strip html etc In-Reply-To: <200308221229.19QhAW7w43NZFji0@eagle> Message-ID: <A226442E-D512-11D7-911E-00039358CB42@earthlink.net> On Friday, August 22, 2003, at 12:29 PM, thelist-request at lists.evolt.org wrote: > On 8/22/03 8:50 AM, "Tobyn Baugher" <toby at rsux.com> wrote: > >> On Thu, Aug 21, 2003 at 09:18:00PM -0500, george donnelly wrote: >>> My current task is to separate the content from the presentation in >>> about >>> 5000+ html pages so that it can be dumped into the new site. BBEdit for Mac: Markup > Utilities > Remove Markup. I suppose you would have to write an Applescript to make it do this as a batch process, though. From jason at cleeland.org Fri Aug 22 21:51:07 2003 From: jason at cleeland.org (Jason Cleeland) Date: Sat, 23 Aug 2003 12:51:07 +1000 Subject: [thelist] WebSite CMS Tools/Apps Message-ID: <004601c36921$671d0c20$fa268490@aragorn> I'm a recent convert to Mambo Open Source (http://www.mamboserver.com) - very simple to set up basic sites, and very neat administration tools. Definitely worth considering along with the other packages. Jase > ----- Original Message ----- > From: "bruce" <bedouglas at earthlink.net> > To: <thelist at lists.evolt.org> > Sent: Saturday, August 23, 2003 2:39 AM > Subject: [thelist] WebSite CMS Tools/Apps > > > > Hi, > > > > We're currently evaluating/investigating web site CMS tools. Basically, > > we're interested in tools to allow us to more efficiently develop web > sites > > in a consistent manner. The CMS/Tool should be flexible in letting us > > manipulate/create the look/feel of the site. The tool should also be able > to > > accommodate more than just "newsletter" formats. In other words, we should > > be able to do pretty much whatever we need with regards to the look/feel > of > > the site. And of course, it needs to support the usual > > PHP/Perl/MySql/Postgres/Etc... > > > > Any thoughts/opinions will be appreciated. We're pretty sure that others > are > > also interested in this topic. We're interested in hearing from anyone > with > > real world experience in using the apps. We'd also be interested in any > > pointers/assistance/articles that could help in ranking the apps, or > > assessing their strengths/weaknesses.. > > > > Thanks > > > > Bruce Douglas > > bedouglas at earthlink.net > > (925) 866-2790 > > > > > > -- > > * * Please support the community that supports you. * * > > http://evolt.org/help_support_evolt/ > > > > For unsubscribe and other options, including the Tip Harvester > > and archives of thelist go to: http://lists.evolt.org > > Workers of the Web, evolt ! > From jsWalter at torres.ws Fri Aug 22 22:51:40 2003 From: jsWalter at torres.ws (jsWalter) Date: Fri, 22 Aug 2003 22:51:40 -0500 Subject: [thelist] basic SQL question... Message-ID: <NHBBJMGBIKDCKHJPABFJOEIEEPAA.jsWalter@torres.ws> Can you tell me why 'A' is better or worse than 'B' ? Just trying to find out what is best to use and when. SQL sample 'A' SELECT * FROM img_items, img_cat WHERE img_id = 20 AND img_items.cat_id = img_cat.cat_id; SQL sample 'B' SELECT * FROM img_items NATURAL JOIN img_cat WHERE img_items.img_id = 20; Thanks Walter ====================================================================== Disillusionment is what little heroes are made of. - Gene Kelly From aredridel at nbtsc.org Fri Aug 22 23:02:08 2003 From: aredridel at nbtsc.org (Aredridel) Date: Fri, 22 Aug 2003 22:02:08 -0600 Subject: [thelist] basic SQL question... In-Reply-To: <NHBBJMGBIKDCKHJPABFJOEIEEPAA.jsWalter@torres.ws> References: <NHBBJMGBIKDCKHJPABFJOEIEEPAA.jsWalter@torres.ws> Message-ID: <1061611328.5406.11.camel@mizar> On Fri, 2003-08-22 at 21:51, jsWalter wrote: > Can you tell me why 'A' is better or worse than 'B' ? > > Just trying to find out what is best to use and when. > > > SQL sample 'A' > SELECT * > FROM img_items, img_cat > WHERE img_id = 20 > AND img_items.cat_id = img_cat.cat_id; > > SQL sample 'B' > SELECT * > FROM img_items > NATURAL JOIN img_cat > WHERE img_items.img_id = 20; They're the same thing, though not every SQL dialect supports NATURAL JOIN. A natural join is just a shorthand for the explicit join above -- and in my opinion, prettier. Some dialects also support an explicit JOIN that's not in the where clause: SELECT * FROM img_items JOIN img_cat ON (img_cat.cat_id = img_items.cat_id) WHERE img_items.img_id = 20 I like that one best -- both explicit, and keeping the JOINs out of the filter (WHERE) clause, which makes me happy. Ari From joshua at waetech.com Fri Aug 22 23:11:46 2003 From: joshua at waetech.com (Joshua Olson) Date: Sat, 23 Aug 2003 00:11:46 -0400 Subject: [thelist] basic SQL question... References: <NHBBJMGBIKDCKHJPABFJOEIEEPAA.jsWalter@torres.ws> Message-ID: <017101c3692c$b0d03b20$0300a8c0@client1> ----- Original Message ----- From: "jsWalter" <jsWalter at torres.ws> Sent: Friday, August 22, 2003 11:51 PM > Can you tell me why 'A' is better or worse than 'B' ? > > Just trying to find out what is best to use and when. > > SQL sample 'A' > SELECT * > FROM img_items, img_cat > WHERE img_id = 20 > AND img_items.cat_id = img_cat.cat_id; > > SQL sample 'B' > SELECT * > FROM img_items > NATURAL JOIN img_cat > WHERE img_items.img_id = 20; Walter, Sample A is using the old-standard notation. Sample B is using new-standard notation. You actually have more control of the join with B. With B you can technically tell it to filter each table before the join or after the join depending on where you put the conditionals (though for INNER JOINS it doesn't make a difference whereas in OUTER JOINS the order of the filtering can make huge differences) A big problem with sample A is that it makes a mess with OUTER JOINS. Almost every database uses a different syntax for these with sample A. Some use *= or =* (left and right outer joins respectively) and some use (+) = or = (+). I'm sure there are a mess of other syntaxes. This makes your sql hard to port. You should probably just stick with version B and completely discard version A keeping in mind that there are other types of JOINS. NATURAL JOIN is basically a shortcut to "figure out which keys the tables are joined on based on which two have the same name and are the same type or have an established relationship" Other than the fact the database has got to figure it out, there's really no difference between a NATURAL JOIN and an INNER JOIN on the same keys. You could rewrite the NATURAL JOIN as an INNER JOIN and explicitly tell the db which keys to JOIN on and it would essentially be the same and may even be a slight bit faster. Keep in mind some databases don't support NATURAL JOIN whereas almost all support INNER, OUTER, CROSS, and FULL (basically a CROSS join with no WHERE clause) joins. Good luck and HTH, <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168 From bedouglas at earthlink.net Fri Aug 22 23:27:40 2003 From: bedouglas at earthlink.net (bruce) Date: Fri, 22 Aug 2003 21:27:40 -0700 Subject: [thelist] browser plugin development In-Reply-To: <000001c368d9$a3525620$a824af18@toddb> Message-ID: <019c01c3692e$e850d710$0301a8c0@Mesa.com> Hi... We're curious. Does anyone have any pointers regarding any open source application that plugs into a browser. We're interested in looking for an "Open Source" application that could record where a user has been on their browser.... Any pointers/assistance would be helpful.... Thanks Bruce bedouglas at earthlink.net From rudy937 at rogers.com Sat Aug 23 01:08:29 2003 From: rudy937 at rogers.com (rudy) Date: Sat, 23 Aug 2003 02:08:29 -0400 Subject: [thelist] basic SQL question... References: <NHBBJMGBIKDCKHJPABFJOEIEEPAA.jsWalter@torres.ws> <017101c3692c$b0d03b20$0300a8c0@client1> Message-ID: <007c01c3693d$2d9a14e0$52639c18@r9373j4yqbe8dy> great summary of the different join syntaxes, guys ari, please try sending as text/plain or turn off your digital signature, because your post comes across empty with a text attachment joshau, you were going great guns until the very end perhaps by correcting you on one small point, i will appear to be a nitpicker, but hey, sql is near and dear to my heart, and i just gots to... > Keep in mind some databases don't support NATURAL JOIN > whereas almost all support INNER, OUTER, CROSS, and > FULL (basically a CROSS join with no WHERE clause) joins. FULL is not a CROSS without a WHERE clause actually, CROSS is like an INNER without a WHERE clause, but only the "old style" inner, the table list syntax, because with INNER you must say ON and give a join condition table list syntax with no WHERE clause produces the same result as CROSS FULL is a UNION of LEFT and RIGHT examples if you wants 'em rudy From rudy937 at rogers.com Sat Aug 23 01:28:28 2003 From: rudy937 at rogers.com (rudy) Date: Sat, 23 Aug 2003 02:28:28 -0400 Subject: [thelist] CSS font-size Formatting References: <NDBBLLCLKJDNHHNPAAHHCEEAFJAA.Ed@ComSimplicity.com> Message-ID: <00d401c3693f$ccb22930$52639c18@r9373j4yqbe8dy> > Here's what it looks like in my IE6 (Win2K). > > http://www.comsimplicity.com/screenshots/You_Must_Complete.gif good one, ed nice to see someone else who really knows how to pack a Links bar ;o) chris, it does seem to be working the way you wrote it be careful setting a font size to 200% in one selector and then 75% in another you might intend for 75% as an "absolute" size, but the browser just might interpret it as 75% of its parent (containing element), and if that's 200% then you end up with 150% at the risk of sounding like a broken record, as this is one of my pet rants, try designing your page without resorting to setting any font size whatsoever otherwise, if you really believe the browser manufacturers collectively have all screwed up, and the default sizes are all too big, and you want to scale down the fonts on your site, then try setting the font size in the BODY to 76% and use ems on all other selectors see http://css-discuss.incutio.com/?page=FontSize rudy > > What's wrong with it? (And which "You must complete..." do you > mean?) > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > Ed McCarroll MailTo:Ed at ComSimplicity.com > ComSimplicity (310) 838-4330 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! From jeff at jeffhowden.com Sat Aug 23 01:44:26 2003 From: jeff at jeffhowden.com (Jeff Howden) Date: Fri, 22 Aug 2003 23:44:26 -0700 Subject: [thelist] browser plugin development In-Reply-To: <1061612583.8467@LISTSERV.alphashop.com> Message-ID: <1061620807.133@LISTSERV.alphashop.com> bruce, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: bruce > > We're curious. Does anyone have any pointers regarding > any open source application that plugs into a browser. > We're interested in looking for an "Open Source" > application that could record where a user has been on > their browser.... ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< you mean, other than what's built into browsers already? perhaps if you explain alittle more about what this sort of thing is for someone can provide a better answer. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ From thelist at meidomus.com Sat Aug 23 02:17:27 2003 From: thelist at meidomus.com (Burhan Khalid) Date: Sat, 23 Aug 2003 10:17:27 +0300 Subject: [thelist] grc.com? In-Reply-To: <20030813090948.R73247@ns2.iguanasoft.com> References: <NDBBLLCLKJDNHHNPAAHHAEFOFIAA.Ed@ComSimplicity.com> <008601c36134$55d2fc30$f71417ac@careersAD.unsw.edu.au> <20030813090948.R73247@ns2.iguanasoft.com> Message-ID: <1797959764.20030823101727@lists.evolt.org> Wednesday, August 13, 2003, 5:22:06 PM, Dougal wrote: DC> On Wed, 13 Aug 2003, Ken Schaefer wrote: [ snip ] >> Better places to get security news: >> www.securityFocus.com (they run the Bugtraq list amongst others) >> www.cert.org DC> Some more good security alert bookarks: DC> http://www.ciac.org/ciac/ DC> http://www.trusecure.com/knowledge/hypeorhot/ DC> http://xforce.iss.net/ I didn't see this site mentioned, so I'll add it here. Good place to get security advisories for programs. http://www.secunia.com I'm subscribed to their Security Advisories list, and every day I'm getting atleast 3 or 4 emails regarding a lot of software vulnerabilities. I'm not familiar with cert, ciac, etc security emails, but what I like about secunia's is that they include three important things : CRITICAL : (how critical this security vulnerability is) IMPACT : (what it does, etc.) WHERE : (where can people use this vulnerability - Local system, remote, etc.) I plan to subscribe to the other ones also. [ snip ] -- Regards, Burhan Khalid thelist[at]meidomus[dot]com http://www.meidomus.com From jsWalter at torres.ws Sat Aug 23 03:32:33 2003 From: jsWalter at torres.ws (jsWalter) Date: Sat, 23 Aug 2003 03:32:33 -0500 Subject: [thelist] a request for schema review... Message-ID: <NHBBJMGBIKDCKHJPABFJGEIMEPAA.jsWalter@torres.ws> Thanks to all for the nice "tutorials" on JOINS. It has helped allot. Now I would like to request that someone please take a look at the schema I created (borrowed/modified) to handle a little project I've been toying with for ages. on my website, is an image of the layout... www.torres.ws/cbs/schema.gif The line type are wrong, as that I don't know what is right, but I hope you get the idea. I'm trying to create a nice database structure in which I can store and cross-reference lots of information about old radios show (from the 30s to the 50s), who was in it, who wrote it, etc. I thought I'd start with the one show I have lots of info on, the CBS Radio Mystery Theater (1974-1982). This schema is designed with that show in mind. And after I play with that for a while, I will expand the structure to include the other 300,000 show I have *some* info one. I'd just like to know if I'm barking up the wrong tree on this. Thanks for your time and enlightenment. Walter ================================================ Here's the Table structure if it helps... # Table structure for table cast # DROP TABLE IF EXISTS cast; CREATE TABLE cast ( cast_id varchar(25) NOT NULL default '', first_name varchar(255) default NULL, middle_name varchar(255) default NULL, last_name varchar(255) default NULL, image_url varchar(255) default NULL, soundclip varchar(255) default NULL, bio varchar(255) default NULL, born varchar(20) NOT NULL default '0000-00-00', died varchar(20) NOT NULL default '0000-00-00', offsite_url varchar(255) default NULL, PRIMARY KEY (cast_id,cast_id), KEY cast_id (cast_id), KEY last_name (last_name) ); # Table structure for table appear # DROP TABLE IF EXISTS appear; CREATE TABLE appear ( appear_id smallint(12) NOT NULL default '0', eps_id smallint(4) default '0', cast_id varchar(25) NOT NULL default 'xx', PRIMARY KEY (appear_id,appear_id), KEY cast_id (cast_id), KEY appear_id (appear_id), KEY eps_id (eps_id) ); # # -------------------------------------------------------- # # Table structure for table users # DROP TABLE IF EXISTS users; CREATE TABLE users ( user_id smallint(4) unsigned NOT NULL auto_increment, user_name varchar(10) NOT NULL default '', user_email varchar(50) NOT NULL default '', user_url varchar(50) default NULL, user_real_name varchar(50) default NULL, user_rights smallint(4) unsigned NOT NULL '0' PRIMARY KEY (user_id), KEY user_id (user_id), KEY user_name (user_name) ) TYPE=MyISAM AUTO_INCREMENT=1 ; # # -------------------------------------------------------- # # Table structure for table showcredits # DROP TABLE IF EXISTS showcredits; CREATE TABLE showcredits ( credit_id smallint(4) NOT NULL default '0', eps_id smallint(4) NOT NULL default '0', user_id varchar(10) NOT NULL default '', PRIMARY KEY (credit_id), KEY credit_id (credit_id) ); # # -------------------------------------------------------- # # Table structure for table writers # DROP TABLE IF EXISTS writers; CREATE TABLE writers ( writer_id smallint(4) NOT NULL default '0', eps_id smallint(4) NOT NULL default '0', cast_id varchar(25) NOT NULL default '' ); # # -------------------------------------------------------- # # Table structure for table shows # DROP TABLE IF EXISTS shows; CREATE TABLE shows ( eps_id smallint(4) NOT NULL default '0', eps_date date NOT NULL default '2000-00-00', eps_title varchar(50) NOT NULL default 'xx', comment varchar(255) default NULL, eps_plot longtext, origwriter varchar(50) default NULL, user_id varchar(10) NOT NULL default '', PRIMARY KEY (eps_id), KEY title (eps_title), KEY eps_id (eps_id) ); # # -------------------------------------------------------- From rudy937 at rogers.com Sat Aug 23 06:44:26 2003 From: rudy937 at rogers.com (rudy) Date: Sat, 23 Aug 2003 07:44:26 -0400 Subject: [thelist] a request for schema review... References: <NHBBJMGBIKDCKHJPABFJGEIMEPAA.jsWalter@torres.ws> Message-ID: <003101c3696c$2b13d3d0$52639c18@r9373j4yqbe8dy> > www.torres.ws/cbs/schema.gif nice what diagramming tool? > CREATE TABLE cast ( > cast_id varchar(25) NOT NULL default '', good, but in this case i would use an integer, auto_increment > first_name varchar(255) default NULL, > middle_name varchar(255) default NULL, > last_name varchar(255) default NULL, 255 is overkill, but harmless > born varchar(20) NOT NULL default '0000-00-00', > died varchar(20) NOT NULL default '0000-00-00', use date instead of varchar, allow them to be null, and don't use that abominable "zero date" default if you are worried about how to store a partial date, e.g. "Feb 1903" then you may want to consider storing year, month, and day separately, as smallint, tinyint, tinyint, each nullable > PRIMARY KEY (cast_id,cast_id), just one will do it > KEY cast_id (cast_id), redundant, the pk is already an index > KEY last_name (last_name) use KEY cast_name_idx (last_name, first_name, middle_name) > CREATE TABLE appear ( > appear_id smallint(12) NOT NULL default '0', separate id for this table not required > eps_id smallint(4) default '0', > cast_id varchar(25) NOT NULL default 'xx', both of these should be integer, not null > PRIMARY KEY (appear_id,appear_id), use PRIMARY KEY (eps_id, cast_id) > KEY cast_id (cast_id), > KEY appear_id (appear_id), > KEY eps_id (eps_id) replace these with KEY cast_eps_idx (cast_id, eps_id) > DROP TABLE IF EXISTS users; > CREATE TABLE users ( > user_id smallint(4) unsigned NOT NULL auto_increment, that's okay, except if you want more than 65,000 users, use integer > user_name varchar(10) NOT NULL default '', i would not bother declaring a default because your app should never allow it no password? > KEY user_id (user_id), redundant > KEY user_name (user_name) use a different index name, like KEY user_name_idx (user_name) > CREATE TABLE showcredits ( > credit_id smallint(4) NOT NULL default '0', not sure what this is for, but if a user can be related to an episode more than once, then keep credit_id, otherwise ditch it > CREATE TABLE writers ( > writer_id smallint(4) NOT NULL default '0', > eps_id smallint(4) NOT NULL default '0', > cast_id varchar(25) NOT NULL default '' this table needs more work are the writers identified in the cast table or user table? > CREATE TABLE shows ( > eps_id smallint(4) NOT NULL default '0', definitely integer, probably auto_increment > eps_date date NOT NULL default '2000-00-00', i'd let it go null, and don't use a default > eps_title varchar(50) NOT NULL default 'xx', may want varchar(255) > origwriter varchar(50) default NULL, ? > user_id varchar(10) NOT NULL default '', if this is a link to the user table, use smallint or integer to match the pk there what is the role? i.e. this episode is related to the user which ... ?? > KEY eps_id (eps_id) redundant hope that helps rudy From wes at pmason.karoo.co.uk Sat Aug 23 06:59:44 2003 From: wes at pmason.karoo.co.uk (Wesley Aaron Mason (1st Vamp)) Date: Sat, 23 Aug 2003 12:59:44 +0100 Subject: [thelist] strip html etc In-Reply-To: <A226442E-D512-11D7-911E-00039358CB42@earthlink.net> References: <A226442E-D512-11D7-911E-00039358CB42@earthlink.net> Message-ID: <781078593.20030823125944@pmason.karoo.co.uk> -----BEGIN PGP SIGNED MESSAGE----- Hash: MD5 Well, as someone else suggestion, if you have PHP (or Perl), you should be able to easilly strip out all presentation-orientated markup, leave some semantic markup and perhaps convert some presentation markup into semantic markup (but you'd have to look through a sample (ergo. distributed sample) of the documents before hand to see if any presentation markup is in fact used to convey semantic meaning and can be thus converted), and reading the document tree, looping through documents, parsing and then outputting to a new location for double-checking afterwards is also a piece of the proverbial. Just an idea, ignore if you're not comfortable with the tools, or dislike the method. - -- 1stVamp (Wesley Aaron Mason) [ Site at somewhere :: http://1stvamp.org/ ] [ Webcomic from nowhere :: http://gfbowl.com/ ] Saturday, August 23, 2003, 3:36:43 AM, Diane Soini wrote: > On Friday, August 22, 2003, at 12:29 PM, > thelist-request at lists.evolt.org wrote: >> On 8/22/03 8:50 AM, "Tobyn Baugher" <toby at rsux.com> wrote: >> >>> On Thu, Aug 21, 2003 at 09:18:00PM -0500, george donnelly wrote: >>>> My current task is to separate the content from the presentation in >>>> about >>>> 5000+ html pages so that it can be dumped into the new site. > BBEdit for Mac: Markup >> Utilities > Remove Markup. > I suppose you would have to write an Applescript to make it do this as > a batch process, though. -----BEGIN PGP SIGNATURE----- Version: 2.6 iQIMAwUAP0dXM+tR7En81eJTAQEV5w+3akdzkqPhW57zZnvaSMXRDCKXJTb4dghM ZYWtjOOxY8dbaGi0JzFXFfvB1IOCuPnNF33PbJkzA1T7AEZaqdCoGKTa9U4pnCHq c4Mvj3YRXxsJCekhDivIbJ1udX0JQx5hcK2rkMXTicXhMynjgThH+ADp6HHacVzz 57g8LC1smeJvAb7TYesNBFrCujqp5liwIuX4IAUaAcygxW4v86EStaFL+Z9c7Mcd zzzu8x57ioYREkCpzWK5dzIqEEwvaQNKzzyYhP1XCEzLjrdYMdHJKDA5ZuX8Eb+n iPJbeI/fiKGRQrye02VzndN0pBtyk7qhZ/Xt4nRUiPCYnte4oQ6fIPSw6hTZ+LR9 De7TDOMG6ofJSzAfte6YHbzJYB621S3SpSYGT28bqJLgMRp0qf3aKIxafUMiqJDA 5P11qAgDhGpO39Cb0yqyc+dcunn1oaNj7jpHngxqb9C5l+hiHOPD9YqluICEVNz3 WWaHwK7UHvhtOYpTwWAWp3Au0ST1cWNNmQK3eU7s2IO5QJwW2W9b0PwQyK0ytSg4 2aenaw/PBlGYGkejjhWJwvk3jC/+xJ/3hidmoc/oV2FCjkhKTA2BIlmvsWT7qkpg bgNcJ6GplBprVM1d3TsUzz7EL6KmA64HQGcthP0hO74nbvP6FwQPRfrgDSWgHcU= =Ixot -----END PGP SIGNATURE----- From dsellers at chinaleads.net Sat Aug 23 07:48:07 2003 From: dsellers at chinaleads.net (Dru Sellers) Date: Sat, 23 Aug 2003 08:48:07 -0400 Subject: [thelist] [VB.NET] - Parent Object Message-ID: <CBEJLLDDOFFDNOLBAPNDKEBICAAA.dsellers@chinaleads.net> Greetings, I am using VB.Net and love using me.property = value kinds of statements is there a me.parent.property = value or parent.property = value kind of statement? Thanks, Dru --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 From bedouglas at earthlink.net Sat Aug 23 07:59:46 2003 From: bedouglas at earthlink.net (bruce) Date: Sat, 23 Aug 2003 05:59:46 -0700 Subject: [thelist] browser plugin development In-Reply-To: <1061620807.133@LISTSERV.alphashop.com> Message-ID: <01c501c36976$6eee1520$0301a8c0@Mesa.com> For more clarification... We're looking for "Open Source" Browser plug-ins to get a feel for how one writres/develops a plug-in. We're really interested in how you'd write an application that would allow one to "capture" the sites visited by a user of a Browser. We assume that this application would have to be some form of Browser Plug-in... Regards, Bruce bedouglas at earthlink.net -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Jeff Howden Sent: Friday, August 22, 2003 11:44 PM To: thelist at lists.evolt.org Subject: RE: [thelist] browser plugin development bruce, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: bruce > > We're curious. Does anyone have any pointers regarding > any open source application that plugs into a browser. > We're interested in looking for an "Open Source" > application that could record where a user has been on > their browser.... ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< you mean, other than what's built into browsers already? perhaps if you explain alittle more about what this sort of thing is for someone can provide a better answer. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From bedouglas at earthlink.net Sat Aug 23 08:14:59 2003 From: bedouglas at earthlink.net (bruce) Date: Sat, 23 Aug 2003 06:14:59 -0700 Subject: [thelist] browser plugin development In-Reply-To: <1061620807.133@LISTSERV.alphashop.com> Message-ID: <01c701c36978$8f17a7b0$0301a8c0@Mesa.com> For even further clarification... After further discussion..... What we'd really like to take a look at, is the process/technology required to be able to create a "Browser Toolbar", similar to the Google Toolbar. Thanks for any assistance/pointers/links/etc... -Bruce bedouglas at earthlink.net For more clarification... We're looking for "Open Source" Browser plug-ins to get a feel for how one writres/develops a plug-in. We're really interested in how you'd write an application that would allow one to "capture" the sites visited by a user of a Browser. We assume that this application would have to be some form of Browser Plug-in... Regards, Bruce bedouglas at earthlink.net -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Jeff Howden Sent: Friday, August 22, 2003 11:44 PM To: thelist at lists.evolt.org Subject: RE: [thelist] browser plugin development bruce, ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > From: bruce > > We're curious. Does anyone have any pointers regarding > any open source application that plugs into a browser. > We're interested in looking for an "Open Source" > application that could record where a user has been on > their browser.... ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< you mean, other than what's built into browsers already? perhaps if you explain alittle more about what this sort of thing is for someone can provide a better answer. .jeff ------------------------------------------------------ Jeff Howden - Web Application Specialist Resume - http://jeffhowden.com/about/resume/ Code Library - http://evolt.jeffhowden.com/jeff/code/ -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From ken at adOpenStatic.com Sat Aug 23 08:27:41 2003 From: ken at adOpenStatic.com (Ken Schaefer) Date: Sat, 23 Aug 2003 23:27:41 +1000 Subject: [thelist] browser plugin development References: <01c701c36978$8f17a7b0$0301a8c0@Mesa.com> Message-ID: <0c4801c3697a$54435010$9700a8c0@careersAD.unsw.edu.au> Are you trying to build an Internet Explorer toolbar? If so, have you looked in MSDN Library? http://msdn.microsoft.com/library/ - not an open source example, but the Platform and IE SDKs are there, so you can look up how you'd need to program it. Cheers Ken ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From: "bruce" <bedouglas at earthlink.net> Subject: RE: [thelist] browser plugin development : For even further clarification... : : After further discussion..... What we'd really like to take a look at, is : the process/technology required to be able to create a "Browser Toolbar", : similar to the Google Toolbar. : : Thanks for any assistance/pointers/links/etc... : : -Bruce : bedouglas at earthlink.net : : : For more clarification... : : We're looking for "Open Source" Browser plug-ins to get a feel for how one : writres/develops a plug-in. We're really interested in how you'd write an : application that would allow one to "capture" the sites visited by a user of : a Browser. We assume that this application would have to be some form of : Browser Plug-in... From madstone at madstone.net Sat Aug 23 08:49:43 2003 From: madstone at madstone.net (Jorah Lavin) Date: Sat, 23 Aug 2003 09:49:43 -0400 Subject: [thelist] strip html etc In-Reply-To: <BB6AE788.3EBA4%list@zettai.net> Message-ID: <5.2.1.1.0.20030823094516.00a13cd0@pop3.norton.antivirus> At 22:18 08/21/03, george donnelly wrote: >I'm implementing a zope solution for a client in which content and >presentation will be separate. The client has an old website where each page >has content and presentation. > >My current task is to separate the content from the presentation in about >5000+ html pages so that it can be dumped into the new site. Doesn't Tidy have an option for upgrading all (HTML 3.2, 4.01, MS Word output, and so on) nasties to XHTML? Wouldn't surprise me if you could run it on a big batch of files somehow. It only recently moved away from command-line, if I recall correctly. http://www.w3.org/People/Raggett/tidy/ -Jorah From bedouglas at earthlink.net Sat Aug 23 08:54:35 2003 From: bedouglas at earthlink.net (bruce) Date: Sat, 23 Aug 2003 06:54:35 -0700 Subject: [thelist] browser plugin development In-Reply-To: <0c4801c3697a$54435010$9700a8c0@careersAD.unsw.edu.au> Message-ID: <01d601c3697e$1722ac90$0301a8c0@Mesa.com> Ken/Others... Yes.... But we're also interested in how one would build a plug-in toolbar for other browsers/other operating systems..... Has anybody on this list actually ever built/implemented one...????? Thanks Bruce bedouglas at earthlink.net -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Ken Schaefer Sent: Saturday, August 23, 2003 6:28 AM To: thelist at lists.evolt.org Subject: Re: [thelist] browser plugin development Are you trying to build an Internet Explorer toolbar? If so, have you looked in MSDN Library? http://msdn.microsoft.com/library/ - not an open source example, but the Platform and IE SDKs are there, so you can look up how you'd need to program it. Cheers Ken ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From: "bruce" <bedouglas at earthlink.net> Subject: RE: [thelist] browser plugin development : For even further clarification... : : After further discussion..... What we'd really like to take a look at, is : the process/technology required to be able to create a "Browser Toolbar", : similar to the Google Toolbar. : : Thanks for any assistance/pointers/links/etc... : : -Bruce : bedouglas at earthlink.net : : : For more clarification... : : We're looking for "Open Source" Browser plug-ins to get a feel for how one : writres/develops a plug-in. We're really interested in how you'd write an : application that would allow one to "capture" the sites visited by a user of : a Browser. We assume that this application would have to be some form of : Browser Plug-in... -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From gravyface at bmfsquad.com Sat Aug 23 08:56:12 2003 From: gravyface at bmfsquad.com (GravyFace) Date: Sat, 23 Aug 2003 09:56:12 -0400 Subject: [thelist] Office 2003, XML, and CMS In-Reply-To: <E19qXgB-0001No-5F@host.linuxsv2.net> Message-ID: <CKEGIAJNBPDBMHBEGIPLOEPJCCAA.gravyface@bmfsquad.com> Hi all, Our writers have told us that they *absolutely must* hold onto Office/MS Word as a CMS requirement. Fortunately, Office 2003 is toting strong support for XML, *hopefully* making this a much easier feat. My question: I've seen some great open-source WebCMS systems (Zope, Typo 3, etc.) but 90% of them are pushing the Rich-Text Editor (RTE) thing, not the "parse my XML file, store in SQL natively" thing. I know very little practically about XML, but am familiar with XML conceptually -- to save me from wading through the W3C stew, can anyone give me an explanation of how I could/should Parse an XML file, dumping into a DB (SQL), and store the XML tags and content "as is": This... <article Type=33> <title>News Flash: Maple Leafs won the Stanley Cup! After an overwhelmingly-dominant season, the Maple Leafs have finally brought Lord Stanley home! GravyFace blah blah blah BLAH!. blah blah BLAAAAAH! Would become... ArticleID|Type | Title | Summary | Body | ---------------------------------------------------------------------------- --------------- 1 |33 |News.. |After a..| blah blah blah BLAH!. blah.. Some of the nodes would be parsed of their content and inserted as plain text/integer (Type, Title etc), while others (body) would retain their "markup" for later XSLT/CSS presentation processing ('emphasis' becomes "font: verdana bold 12px;"). I do have some concerns that I may be approaching this wrong: a) should all these articles be stored natively in an XML file and disregard the DB? I still think that SQL would out-perform the "XML file server" thing, but I could be wrong. b) should I really be using XHTML as I'm primarily using this for the Web and if we decide to port it somewhere else, at least XHTML is well-formed. _______________________________________________ Help: http://lists.evolt.org/mailman/listinfo/thelist Archives: http://lists.evolt.org End of thelist Digest, Vol 6, Issue 56 ************************************** From ken at adOpenStatic.com Sat Aug 23 09:01:40 2003 From: ken at adOpenStatic.com (Ken Schaefer) Date: Sun, 24 Aug 2003 00:01:40 +1000 Subject: [thelist] browser plugin development References: <01d601c3697e$1722ac90$0301a8c0@Mesa.com> Message-ID: <0cf401c3697f$137edc70$9700a8c0@careersAD.unsw.edu.au> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From: "bruce" Subject: RE: [thelist] browser plugin development : Ken/Others... : : Yes.... But we're also interested in how one would build : a plug-in toolbar for other browsers/other operating : systems... : : Has anybody on this list actually ever built/implemented : one...????? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Each browser would expose a different API (if they expose one at all...) Also, haven't you head about the world-wide shortage of question marks? Do your bit, contain the urge to use redundant question marks. :-) Cheers Ken From alexj_list at agrussell.com Sat Aug 23 09:09:38 2003 From: alexj_list at agrussell.com (Alex Jones) Date: Sat, 23 Aug 2003 09:09:38 -0500 Subject: [thelist] Basic PHP Shopping Cart In-Reply-To: <000701c368f1$8ef87340$6401a8c0@ralphxorostodu> References: <5.1.0.14.2.20030822113953.00b711c8@bifrost.agrussell.com> Message-ID: <5.1.0.14.2.20030823090712.023d9df0@bifrost.agrussell.com> At 04:08 PM 8/22/2003, Ralph Guzman wrote: >Alex, > >If you are looking for a standalone shopping cart have a look at >Oscommerce: > >http://www.oscommerce.com > >I think it has all the features you need and it also has a big >contribution list where you can find updates or addons: Ralph, I have looked at OSCommerce but am a bit worried that it has more features than I need and could prove cumbersome. Is it easy to just use the shopping cart and not use its product catalog side of things? >http://www.oscommerce.com/community/contributions > >If you are looking for a CMS with shopping cart then have a look at >ezPublish. > >http://www.ez.no/ Actually, that is the CMS I am using. All in all I am pretty happy with it, but I need more flexibility in the shopping cart... >Ralph > >-----Original Message----- >From: thelist-bounces at lists.evolt.org >[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Alex Jones >Sent: Friday, August 22, 2003 9:50 AM >To: thelist at lists.evolt.org >Subject: [thelist] Basic PHP Shopping Cart > >Howdy all, > >The CMS that we've installed and added content to doesn't appear to meet > >our unique needs on the shopping cart side of things. At this point I >have a couple of options: write a cart from scratch or choose a third party >cart. As we are on a very tight deadline I am exploring the idea of a >third party cart. I would truly appreciate your recommendations for a >simple cart. I do not want/need a cart that does product management as >that is already covered by our CMS. > >Requirements: >- PHP/MySQL >- Easily customized output >- Ability to define simple shipping logic: local vs. international & >below a certain price get free shipping >- Ability to provide multiple shipping options >- Ability to define tax rate based on destination state (U.S.) - VAT is >not needed >- Ability to have three full addresses (shipping, billing, delivery) > >Basically I want the user to click a standard submit button on one of >our product pages to add items to the cart - I would prefer to send the >variables via POST. > >The form is to be e-mailed (within our network) so I do not need any >form of payment gateways. From alexj_list at agrussell.com Sat Aug 23 09:12:01 2003 From: alexj_list at agrussell.com (Alex Jones) Date: Sat, 23 Aug 2003 09:12:01 -0500 Subject: [thelist] Basic PHP Shopping Cart In-Reply-To: <00f401c368f9$c657e3e0$0300a8c0@client1> References: <5.1.0.14.2.20030822113953.00b711c8@bifrost.agrussell.com> Message-ID: <5.1.0.14.2.20030823090706.02420a00@bifrost.agrussell.com> At 05:07 PM 8/22/2003, Joshua Olson wrote: > > - Ability to have three full addresses (shipping, billing, delivery) > >I'm curious, why would you need shipping and delivery address. Would they >not be the same thing? Which one drives the sales tax calculation? Oops, I should have been a little clearer in writing those. They should be: Shipping - For the package Billing - As listed with the credit card company Mail Delivery - If they want our print catalog etc. We have several customers who want their packages delivered somewhere that a person can physically receive it, but want catalogs sent to their home address. From Kath at cyber-kat.com Sat Aug 23 09:12:51 2003 From: Kath at cyber-kat.com (Kath) Date: Sat, 23 Aug 2003 10:12:51 -0400 Subject: [thelist] Setting up PHP & mySQL Message-ID: <3.0.32.20030823101249.012201f0@optonline.net> At 01:17 PM 8/22/2003 -0500, you wrote: >I use phpdev on xp platform works great. PHP4.06 / Apache1.3.20 / >ActivePerl5.6 / MySQL3.23 / phpMyAdmin 2.02 and more. Possible upgrade >to php 4.23 > >http://www.firepages.com.au/dev4.htm 1+ on PHPdev. Being completely new to the Apache/MySQL/PHP envirnonment, we used it to set up the environement on my Win 2000 PC. It was much easier to do than setting them all up individually (which we tried first without success). Kath ... "A patriot must always be ready to defend his country against its government." -Edward Abbey, naturalist and author (1927-1989) Established 1995 --> www.cyber-kat.com From Kath at cyber-kat.com Sat Aug 23 09:26:53 2003 From: Kath at cyber-kat.com (Kath) Date: Sat, 23 Aug 2003 10:26:53 -0400 Subject: [thelist] WebSite CMS Tools/Apps Message-ID: <3.0.32.20030823102651.011f0068@optonline.net> At 10:24 PM 8/22/2003 +0200, Damien COLA wrote: >I personally am looking for the best MINI CMS system. >One simple system that would have an admin section to enter : >title, subtitle, text and 1 or several photos. > >Then for the presentation side of things, something as simple as >including a PHP file into the site's php pages. > You might want to look at PhotoStack --> http://photostack.org/ I just started working with it and I'm very happy with the results. It's PHP based and the templates are valid XHTML and CSS - very customizable (is that a word? ). They have several examples of use on the web site --> http://photostack.org/about/ Or you can see what I've done with it here --> http://www.cyber-kat.com/photos/ I haven't finished with the layout yet and I want to incorporate the index on my gallery page --> http://www.cyber-kat.com/home/hall.html - but I haven't gotten that far. Kath ... "A patriot must always be ready to defend his country against its government." -Edward Abbey, naturalist and author (1927-1989) Established 1995 --> www.cyber-kat.com From bedouglas at earthlink.net Sat Aug 23 10:23:40 2003 From: bedouglas at earthlink.net (bruce) Date: Sat, 23 Aug 2003 08:23:40 -0700 Subject: [thelist] monitoring applications - open source In-Reply-To: <01d601c3697e$1722ac90$0301a8c0@Mesa.com> Message-ID: <01e801c3698a$88da0a20$0301a8c0@Mesa.com> Hi... Also, is anyone aware of any applications which can be used to monitor/track the URLs that someone views with a browser. The app can be either $$$ or free. We would prefer "Open Source"!! A search of google hasn't really provided anything... might be using the wrong search terms... Thanks -Bruce bedouglas at earthlink.net From gsalas at mantareys.com Sat Aug 23 10:28:22 2003 From: gsalas at mantareys.com (Guillermo Salas M) Date: Sat, 23 Aug 2003 10:28:22 -0500 Subject: [thelist] monitoring applications - open source In-Reply-To: <01e801c3698a$88da0a20$0301a8c0@Mesa.com> References: <01e801c3698a$88da0a20$0301a8c0@Mesa.com> Message-ID: <3F478816.3080006@mantareys.com> If u r using squid as proxy-cache, u can use calamaris, or squidward. Try searching for it at www.freshmeat.net bruce wrote: >Hi... > >Also, is anyone aware of any applications which can be used to monitor/track >the URLs that someone views with a browser. The app can be either $$$ or >free. We would prefer "Open Source"!! > >A search of google hasn't really provided anything... might be using the >wrong search terms... > > >Thanks > >-Bruce >bedouglas at earthlink.net > > > > -- ---- Guillermo Salas M. Mantareys Web Developers Chief Technical Officer Phone: 593 5 624025 Cell : 593 9 985 5138 e-mail: gsalas at mantareys.com www: www.mantareys.com ---- From rudy937 at rogers.com Sat Aug 23 10:36:39 2003 From: rudy937 at rogers.com (rudy) Date: Sat, 23 Aug 2003 11:36:39 -0400 Subject: [thelist] monitoring applications - open source References: <01e801c3698a$88da0a20$0301a8c0@Mesa.com> Message-ID: <001201c3698c$5a2296a0$52639c18@r9373j4yqbe8dy> > Also, is anyone aware of any applications which can be used to > monitor/track the URLs that someone views with a browser. the browsers themselves do this, it's called History in internet explorer, alt-v, e, h (or ctrl-h) if your idea is to track sites visited to "check up" on someone, then of course this someone will likely clear their history after surfing in internet explorer, alt-t, o, h what did you want it for? rudy From bedouglas at earthlink.net Sat Aug 23 10:40:59 2003 From: bedouglas at earthlink.net (bruce) Date: Sat, 23 Aug 2003 08:40:59 -0700 Subject: [thelist] monitoring applications - open source In-Reply-To: <3F478816.3080006@mantareys.com> Message-ID: <01ea01c3698c$f437ee70$0301a8c0@Mesa.com> Hi.. Regarding monitoring of Browsers/Urls.. I'm looking for something for the client side. The app could be/would probably need to be downloaded and installed by the user. The user would not necessarily have any proxy type of software. I was actually hoping that there might be something which could "attach" to the Browser activity.... Thanks -Bruce bedouglas at earthlink.net -----Original Message----- From: Guillermo Salas M [mailto:gsalas at mantareys.com] Sent: Saturday, August 23, 2003 8:28 AM To: bedouglas at earthlink.net; thelist at lists.evolt.org Subject: Re: [thelist] monitoring applications - open source If u r using squid as proxy-cache, u can use calamaris, or squidward. Try searching for it at www.freshmeat.net bruce wrote: >Hi... > >Also, is anyone aware of any applications which can be used to monitor/track >the URLs that someone views with a browser. The app can be either $$$ or >free. We would prefer "Open Source"!! > >A search of google hasn't really provided anything... might be using the >wrong search terms... > > >Thanks > >-Bruce >bedouglas at earthlink.net > > > > -- ---- Guillermo Salas M. Mantareys Web Developers Chief Technical Officer Phone: 593 5 624025 Cell : 593 9 985 5138 e-mail: gsalas at mantareys.com www: www.mantareys.com ---- From bedouglas at earthlink.net Sat Aug 23 11:13:01 2003 From: bedouglas at earthlink.net (bruce) Date: Sat, 23 Aug 2003 09:13:01 -0700 Subject: [thelist] monitoring applications - open source In-Reply-To: <01e801c3698a$88da0a20$0301a8c0@Mesa.com> Message-ID: <01eb01c36991$6d51fd10$0301a8c0@Mesa.com> Hi.. Basically, we're looking for an app that can be used to "see/track" the Urls that are entered for a given Browser. Ultimately, we'll compile statistics regarding the URLs that are viewed. But the app has to either run as a separate process, or be tied to the Browser. It also has to be an actual process running on the individual machine... We've seen a few, but are wondering if anyone has run across any "Open Source" solutions, or if anyone has actually written any code to do what we're describing... We're not looking for going through history/firewall/etc... Thanks -Bruce -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of bruce Sent: Saturday, August 23, 2003 8:24 AM To: thelist at lists.evolt.org Subject: [thelist] monitoring applications - open source Hi... Also, is anyone aware of any applications which can be used to monitor/track the URLs that someone views with a browser. The app can be either $$$ or free. We would prefer "Open Source"!! A search of google hasn't really provided anything... might be using the wrong search terms... Thanks -Bruce bedouglas at earthlink.net -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From zephod at drizzle.com Sat Aug 23 11:35:58 2003 From: zephod at drizzle.com (Bill Hughey) Date: Sat, 23 Aug 2003 09:35:58 -0700 Subject: [thelist] browser plugin development References: <01c701c36978$8f17a7b0$0301a8c0@Mesa.com> Message-ID: <001401c36994$a237d470$0201a8c0@billhu1> Bruce, Try looking at the Broadway extension to the X11 server for embedding X11 client windows in a browser application. It has a browser plugin to host the embedding process. To use this in IE takes some shim code which may have come from Microsloth and therefore may no longer be available. Email the list at www.XFree86.org. (Search the archives first though to avoid any flames.) ----- Original Message ----- From: "bruce" To: Sent: Saturday, August 23, 2003 6:14 AM Subject: RE: [thelist] browser plugin development > For even further clarification... > > After further discussion..... What we'd really like to take a look at, is > the process/technology required to be able to create a "Browser Toolbar", > similar to the Google Toolbar. > > Thanks for any assistance/pointers/links/etc... > > -Bruce > bedouglas at earthlink.net > > > For more clarification... > > We're looking for "Open Source" Browser plug-ins to get a feel for how one > writres/develops a plug-in. We're really interested in how you'd write an > application that would allow one to "capture" the sites visited by a user of > a Browser. We assume that this application would have to be some form of > Browser Plug-in... > > Regards, > > Bruce > bedouglas at earthlink.net > > > -----Original Message----- > From: thelist-bounces at lists.evolt.org > [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Jeff Howden > Sent: Friday, August 22, 2003 11:44 PM > To: thelist at lists.evolt.org > Subject: RE: [thelist] browser plugin development > > > > bruce, > > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > From: bruce > > > > We're curious. Does anyone have any pointers regarding > > any open source application that plugs into a browser. > > We're interested in looking for an "Open Source" > > application that could record where a user has been on > > their browser.... > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< > > you mean, other than what's built into browsers already? > > perhaps if you explain alittle more about what this sort of thing is for > someone can provide a better answer. > > .jeff > > ------------------------------------------------------ > Jeff Howden - Web Application Specialist > Resume - http://jeffhowden.com/about/resume/ > Code Library - http://evolt.jeffhowden.com/jeff/code/ > > > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! > > -- > * * Please support the community that supports you. * * > http://evolt.org/help_support_evolt/ > > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! > From aredridel at nbtsc.org Sat Aug 23 12:13:17 2003 From: aredridel at nbtsc.org (Aredridel) Date: Sat, 23 Aug 2003 11:13:17 -0600 Subject: [thelist] monitoring applications - open source In-Reply-To: <001201c3698c$5a2296a0$52639c18@r9373j4yqbe8dy> References: <01e801c3698a$88da0a20$0301a8c0@Mesa.com> <001201c3698c$5a2296a0$52639c18@r9373j4yqbe8dy> Message-ID: <1061658796.5407.14.camel@mizar> On Sat, 2003-08-23 at 09:36, rudy wrote: > > Also, is anyone aware of any applications which can be used to > > monitor/track the URLs that someone views with a browser. > Proxy caches such as squid log web accesses-- that's what I'd use. Ari From aredridel at nbtsc.org Sat Aug 23 12:22:07 2003 From: aredridel at nbtsc.org (Aredridel) Date: Sat, 23 Aug 2003 11:22:07 -0600 Subject: [thelist] monitoring applications - open source In-Reply-To: <01ea01c3698c$f437ee70$0301a8c0@Mesa.com> References: <01ea01c3698c$f437ee70$0301a8c0@Mesa.com> Message-ID: <1061659327.5407.16.camel@mizar> On Sat, 2003-08-23 at 09:40, bruce wrote: > Hi.. > > Regarding monitoring of Browsers/Urls.. I'm looking for something for the > client side. The app could be/would probably need to be downloaded and > installed by the user. The user would not necessarily have any proxy type of > software. > > I was actually hoping that there might be something which could "attach" to > the Browser activity.... Unix or Win32 or both? From john at neoncowboy.com Sat Aug 23 14:17:50 2003 From: john at neoncowboy.com (John Corry) Date: Sat, 23 Aug 2003 09:17:50 -1000 Subject: [thelist] browser plugin development In-Reply-To: <01d601c3697e$1722ac90$0301a8c0@Mesa.com> Message-ID: <001001c369ab$514d2440$6501a8c0@neonreactor> I haven't... But it wouldn't really be building/implementing 'one'. To be reliable, it would mean building/implementing one for Windows, Mac, Linux for IE and NS/Moz at least. That's building/implementing 6, presumably from one design/architecture. I noticed you got a URL for the MSDN, here's a link to the NS plugin development SDK: www.netscape.com/comprod/development_partners/plugin_api/ Are you sure this would require a browser plug-in? Maybe you could get by with a Java applet...that would probably be easier to build. I'm still not sure what you're trying to do...all you've speciifed is that you want to "capture" (who knows what that means) the sites visited by the user of a browser. Each browser has a 'history' feature that does exactly that. I would guess that the SDKs probably have classes that allow access to the history in the browser...not that I'd want your software to have access to *mine*... Is this spyware? > Has anybody on this list actually ever built/implemented one...????? > > Thanks > > Bruce > bedouglas at earthlink.net From bedouglas at earthlink.net Sat Aug 23 14:17:57 2003 From: bedouglas at earthlink.net (bruce) Date: Sat, 23 Aug 2003 12:17:57 -0700 Subject: [thelist] monitoring applications - open source In-Reply-To: <1061659327.5407.16.camel@mizar> Message-ID: <020201c369ab$4355dad0$0301a8c0@Mesa.com> Both... The Canary application is apparently representative of the kind of technology that we're looking for... Thanks -Bruce -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Aredridel Sent: Saturday, August 23, 2003 10:22 AM To: thelist at lists.evolt.org Subject: RE: [thelist] monitoring applications - open source On Sat, 2003-08-23 at 09:40, bruce wrote: > Hi.. > > Regarding monitoring of Browsers/Urls.. I'm looking for something for the > client side. The app could be/would probably need to be downloaded and > installed by the user. The user would not necessarily have any proxy type of > software. > > I was actually hoping that there might be something which could "attach" to > the Browser activity.... Unix or Win32 or both? From bedouglas at earthlink.net Sat Aug 23 15:06:07 2003 From: bedouglas at earthlink.net (bruce) Date: Sat, 23 Aug 2003 13:06:07 -0700 Subject: [thelist] monitoring applications - open source In-Reply-To: <1061659327.5407.16.camel@mizar> Message-ID: <021001c369b1$fe6eada0$0301a8c0@Mesa.com> Aredridel, We would be looking for an app that could support users/browsers on bot Linux/Windows platforms. We've seen two apps: Canary, and GUrl Watcher as representative of some of the functionality we're looking for. We'd like to be able to monitor what the URLs are that the user is looking at, as well as let the user enable/disable the function when they desire... We're interested in any "Open Source" solutions to this as we'd like to see how to write/create these types of apps. The app would be either a standalone app that runs in the background, or it would (preferably) be some sort of Browser plugin. Thanks -Bruce -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Aredridel Sent: Saturday, August 23, 2003 10:22 AM To: thelist at lists.evolt.org Subject: RE: [thelist] monitoring applications - open source On Sat, 2003-08-23 at 09:40, bruce wrote: > Hi.. > > Regarding monitoring of Browsers/Urls.. I'm looking for something for the > client side. The app could be/would probably need to be downloaded and > installed by the user. The user would not necessarily have any proxy type of > software. > > I was actually hoping that there might be something which could "attach" to > the Browser activity.... Unix or Win32 or both? From mindmachine at hotmail.com Sat Aug 23 16:02:25 2003 From: mindmachine at hotmail.com (Og) Date: Sat, 23 Aug 2003 17:02:25 -0400 Subject: [thelist] Copying mySQL DB's Message-ID: As with the learning of all new technologies, you have people like me who are going to torture everyone else with stupid questions (at least they don't tke long to answe. So here is a nice one. I'm using PHP and mySQL. I'm developing code on my test server (now that you guys helped me set it up), but I wondering if it's possible to copy a mySQL database to a webserver after you've made it on your test server. The lack of a sinlge access type file is what is confusing me a little. Is it as simple as copying over to the web server then pointing to it using the server admin?. Thanks for your help. Cheers Paul J Maguire CEO Ogmatter www.ogmatter.com info at ogmatter.com "Ogmatter In mind" Note : All outgoing emails have been scanned with Norton Anti-Virus From dianesoini at earthlink.net Sat Aug 23 19:25:57 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Sat, 23 Aug 2003 17:25:57 -0700 Subject: [thelist] Re: the onclick and reg exp thing In-Reply-To: <200308230404.19Qwcj7vn3NZFl40@penguin> Message-ID: <87D12D53-D5C9-11D7-911E-00039358CB42@earthlink.net> I actually did a search the other day (in homesite) for anchor tags using onclick for popup windows. It wasn't a huge job, but this is how I did it. First of all, I never trust that using a tool's find and replace or reg exp search will work 100% because I don't always write things 100%. First I did a search for just "> Thanks Gary, >> >> once I made sure I ticked Regular expressions on !! :-) >> this worked, but it replaced the URL with $1 !! >> >> I was using Homesite 4.5. (actually CF Studio 4.5) >> Will try with CF5 and various Dreamweaver versions at home, >> >> BTW also, what was the /s for after the first href? >> href="#"\sonClick I had to remove this to get it to work. > > Seems Dreamweaver and Homesite handle this differently as I tested in > Dreamweaver MX before posting my reply and it worked as intended. the > \s > represents the space between the href and onclick attributes. Some > suggestions have been posted for use in Homesite, perhaps they'll be of > use to you, otherwise give it a whirl in Dreamweaver and see how that > pans out for you. > > All the best, > > Gary From pixelmech at yahoo.com Sat Aug 23 19:37:21 2003 From: pixelmech at yahoo.com (Tom Dell'Aringa) Date: Sat, 23 Aug 2003 17:37:21 -0700 (PDT) Subject: [thelist] php/mySQL update problem Message-ID: <20030824003721.89888.qmail@web12603.mail.yahoo.com> Hi, I'm trying to do an update of an article. My update does not seem to be working. When my script attempts to SELECT the newly updated article, it does not find the newly updated article. Strangely, in my admin page I get the updated information displayed, but it never makes it to the database. I am not getting a mySQL error on my update statement. Basically cannot figure this out. Here is the code snippet. Not sure if this is enough info but hoping I'm missing something obvious: ----------- else if($pageAction == 'Edit') { $sql = "UPDATE article SET articleTitle = '$aTitle', authorID = '$author', dateModified = '$aDate', article = '$aBody', categoryID = '$aCat', articleBlurb = '$aBlurb' WHERE articleID = '$aid'"; $result = mysql_query($sql); if (!$result) { $msg = "Update Failed: " . mysql_error(); } else { $msg = "Updated article successfully."; $newData = @mysql_query( "SELECT articleID, authorID, articleTitle, UNIX_TIMESTAMP(dateCreated) as unixtime, article, categoryID, articleBlurb FROM article WHERE articleID = '$aid'") or die ("There was a problem getting the article: ".mysql_error()); /// RIGHT HERE - trying to get this data fails /// $items = mysql_num_rows($newData); if($items > 0) { while ($qResult = mysql_fetch_assoc($newData)) { // Get article data $aTitle = $qResult["articleTitle"]; $aBody = $qResult["article"]; $aid = $qResult["articleID"]; $author = $qResult["authorID"]; $aCat = $qResult["categoryID"]; $aBlurb = $qResult["articleBlurb"]; $unixTime = $qResult["unixtime"]; $aDate = date("M j, Y", $unixTime); } } else { /// SO, I am getting this... print "Problem retrieving new updated data..."; } } $mode = "Edit"; } -------------------- Thanks Tom ===== http://www.pixelmech.com/ :: Web Development Services http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial Case for Adopting Web Standards] "That's not art, that's just annoying." -- Squidward From dianesoini at earthlink.net Sat Aug 23 19:50:34 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Sat, 23 Aug 2003 17:50:34 -0700 Subject: [thelist] browser plugin development In-Reply-To: <200308231409.19QFDN2Qm3NZFl40@penguin> Message-ID: I'm not any kind of expert, but it would appear to me that there wouldn't be a toolbar thingy you could make that would be for every browser. Nevertheless... Mozilla Firebird uses something called an extension. Developers write them to add functionality to the Firebird browser. Many times this functionality adds a toolbar. You could try looking in to this for more insight into where to go next. Go to mozilla.org and look for Firebird extensions. It sounds like you want to write something to spy on others' browsing? Otherwise, there already is a button in the toolbar to view the history of where you've been browsing. Sounds less like a browser plugin than some kind of network tool. Otherwise you are wanting to write a real plugin, like the shockwave flash or adobe SVG viewer? No answers here, but maybe someone else? D On Saturday, August 23, 2003, at 02:09 PM, thelist-request at lists.evolt.org wrote: > Ken/Others... > > Yes.... But we're also interested in how one would build a plug-in > toolbar > for other browsers/other operating systems..... > > Has anybody on this list actually ever built/implemented one...????? > > Thanks > > Bruce > bedouglas at earthlink.net From rudy937 at rogers.com Sat Aug 23 20:27:05 2003 From: rudy937 at rogers.com (rudy) Date: Sat, 23 Aug 2003 21:27:05 -0400 Subject: [thelist] php/mySQL update problem References: <20030824003721.89888.qmail@web12603.mail.yahoo.com> Message-ID: <002301c369de$d84e1d40$52639c18@r9373j4yqbe8dy> your queries look fine except for the quotes around $aid it's numeric, right? i'm guessing, but these ids usually are i absolutely hate the way mysql lets you get away with sloppy coding like WHERE articleid = '$aid' this should give a syntax error if articleid is numeric the update is probably running, but not updating any row, because it can't find the right row with that WHERE clause then the select runs, and it can't find the row either rudy From pixelmech at yahoo.com Sat Aug 23 21:16:52 2003 From: pixelmech at yahoo.com (Tom Dell'Aringa) Date: Sat, 23 Aug 2003 19:16:52 -0700 (PDT) Subject: [thelist] php/mySQL update problem In-Reply-To: <002301c369de$d84e1d40$52639c18@r9373j4yqbe8dy> Message-ID: <20030824021652.39813.qmail@web12601.mail.yahoo.com> --- rudy wrote: > your queries look fine except for the quotes around $aid > it's numeric, right? i'm guessing, but these ids usually are Correct, numeric (author ID) > i absolutely hate the way mysql lets you get away with sloppy > coding like > > WHERE articleid = '$aid' > > this should give a syntax error if articleid is numeric See, I THOUGHT that was the case. So I tried without the single quote, and now I get: You have an error in your SQL syntax near '' at line 9 Here it is w/o quote: $sql = "UPDATE article SET articleTitle = '$aTitle', authorID = '$author', dateModified = '$aDate', article = '$aBody', categoryID = '$aCat', articleBlurb = '$aBlurb' WHERE articleID = $aid" > the update is probably running, but not updating any row, because > it can't find the right row with that WHERE clause > then the select runs, and it can't find the row either Makes sense... Do i need a semicolon at the end or something? Running this in phpMyAdmin directly - it works fine... Tom ===== http://www.pixelmech.com/ :: Web Development Services http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial Case for Adopting Web Standards] "That's not art, that's just annoying." -- Squidward From mike-evolt at teczno.com Sat Aug 23 21:26:14 2003 From: mike-evolt at teczno.com (Mike Migurski) Date: Sat, 23 Aug 2003 19:26:14 -0700 (PDT) Subject: [thelist] Copying mySQL DB's In-Reply-To: References: Message-ID: >...wondering if it's possible to copy a mySQL database to a webserver >after you've made it on your test server. The lack of a sinlge access >type file is what is confusing me a little. Is it as simple as copying >over to the web server then pointing to it using the server admin?. >Thanks for your help. MySQL has an included program called mysqldump, whose job is to generate the SQL commands needed to create a database. So, a typical way (in a unix-like OS) to move a database from one place to another might be to capture the output of mysqldump to a file, and then source that file into a different database. `man mysqldump` for more info; I usually use commands such as these: % mysqldump --complete-insert --add-drop-table db_name > db_name.mysql % mysql another_db_name < db_name.mysql PostgreSQL has a similar utility called pg_dump, and it is used in the same manner. --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html From pixelmech at yahoo.com Sat Aug 23 21:29:22 2003 From: pixelmech at yahoo.com (Tom Dell'Aringa) Date: Sat, 23 Aug 2003 19:29:22 -0700 (PDT) Subject: [thelist] php/mySQL update problem [SOLVED] In-Reply-To: <20030824021652.39813.qmail@web12601.mail.yahoo.com> Message-ID: <20030824022922.44683.qmail@web12604.mail.yahoo.com> A hearty "d'oh" silver!! The problem was my variable $aid was NOT set... thus the error when I removed the quote, and thus no result when it searched for the string '' as a matching AID. Thanks rudy you pointed me in the right direction..too close to the code and all... Tom ===== http://www.pixelmech.com/ :: Web Development Services http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial Case for Adopting Web Standards] "That's not art, that's just annoying." -- Squidward From nemesis at nemesis1.f2o.org Sat Aug 23 21:40:14 2003 From: nemesis at nemesis1.f2o.org (Nemesis) Date: Sat, 23 Aug 2003 22:40:14 -0400 Subject: [thelist] php/mySQL update problem In-Reply-To: <20030824021652.39813.qmail@web12601.mail.yahoo.com> References: <20030824021652.39813.qmail@web12601.mail.yahoo.com> Message-ID: <3F48258E.1010200@nemesis1.f2o.org> Tom Dell'Aringa wrote: > --- rudy wrote: > >>your queries look fine except for the quotes around $aid >>it's numeric, right? i'm guessing, but these ids usually are > > > Correct, numeric (author ID) > > >>i absolutely hate the way mysql lets you get away with sloppy >>coding like >> >> WHERE articleid = '$aid' >> >>this should give a syntax error if articleid is numeric > > > See, I THOUGHT that was the case. So I tried without the single > quote, and now I get: > > You have an error in your SQL syntax near '' at line 9 > > Here it is w/o quote: > > $sql = "UPDATE article > SET > articleTitle = '$aTitle', > authorID = '$author', > dateModified = '$aDate', > article = '$aBody', > categoryID = '$aCat', > articleBlurb = '$aBlurb' > WHERE > articleID = $aid" > It should work once you removed the quotes. Notice something missing? articleID = $aid"; <------- or is it a typo? Gary -- The Nemesis Project http://nemesis1.f2o.org One Stop CSS From pixelmech at yahoo.com Sat Aug 23 21:43:22 2003 From: pixelmech at yahoo.com (Tom Dell'Aringa) Date: Sat, 23 Aug 2003 19:43:22 -0700 (PDT) Subject: [thelist] php/mySQL update problem In-Reply-To: <3F48258E.1010200@nemesis1.f2o.org> Message-ID: <20030824024322.40856.qmail@web12601.mail.yahoo.com> --- Nemesis wrote: > It should work once you removed the quotes. Notice something > missing? > articleID = $aid"; <------- or is it a typo? Just left it out of my copy. As I stated, I had not correctly set $aid, thus my problems. Thanks tho! Tom ===== http://www.pixelmech.com/ :: Web Development Services http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial Case for Adopting Web Standards] "That's not art, that's just annoying." -- Squidward From pixelmech at yahoo.com Sat Aug 23 21:44:52 2003 From: pixelmech at yahoo.com (Tom Dell'Aringa) Date: Sat, 23 Aug 2003 19:44:52 -0700 (PDT) Subject: [thelist] mySQL/Forms - keeping line breaks Message-ID: <20030824024452.9115.qmail@web12605.mail.yahoo.com> On to my next problem... When I pull a story from my DB, it comes in as one looooong string of text and html. This makes it very difficult to edit an article after it has been saved to the DB. Is there any way to keep the line breaks intact when I pull it into my form so it is more readable? TIA Tom ===== http://www.pixelmech.com/ :: Web Development Services http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial Case for Adopting Web Standards] "That's not art, that's just annoying." -- Squidward From ralph213 at sbcglobal.net Sat Aug 23 18:39:07 2003 From: ralph213 at sbcglobal.net (Ralph Guzman) Date: Sat, 23 Aug 2003 16:39:07 -0700 Subject: [thelist] Copying mySQL DB's In-Reply-To: Message-ID: <002101c369cf$bee43740$6401a8c0@ralphxorostodu> One of the easiest ways to do this is to use phpMyAdmin's (http://www.phpmyadmin.net/) export function to dump your table structure and data to a text, csv, or xml file and then import this file on your new server. If you haven't installed phpMyAdmin you can play around with a demo here: http://www.phpmyadmin.net/phpMyAdmin/ -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Og Sent: Saturday, August 23, 2003 2:02 PM To: thelist at lists.evolt.org Subject: [thelist] Copying mySQL DB's As with the learning of all new technologies, you have people like me who are going to torture everyone else with stupid questions (at least they don't tke long to answe. So here is a nice one. I'm using PHP and mySQL. I'm developing code on my test server (now that you guys helped me set it up), but I wondering if it's possible to copy a mySQL database to a webserver after you've made it on your test server. The lack of a sinlge access type file is what is confusing me a little. Is it as simple as copying over to the web server then pointing to it using the server admin?. Thanks for your help. Cheers Paul J Maguire CEO Ogmatter www.ogmatter.com info at ogmatter.com "Ogmatter In mind" Note : All outgoing emails have been scanned with Norton Anti-Virus -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From ralph at nqionline.com Sat Aug 23 18:40:44 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Sat, 23 Aug 2003 16:40:44 -0700 Subject: [thelist] monitoring applications - open source In-Reply-To: <01e801c3698a$88da0a20$0301a8c0@Mesa.com> Message-ID: <002201c369cf$f90afee0$6401a8c0@ralphxorostodu> Take a look a phpOpenTracker: http://www.phpopentracker.de/ -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of bruce Sent: Saturday, August 23, 2003 8:24 AM To: thelist at lists.evolt.org Subject: [thelist] monitoring applications - open source Hi... Also, is anyone aware of any applications which can be used to monitor/track the URLs that someone views with a browser. The app can be either $$$ or free. We would prefer "Open Source"!! A search of google hasn't really provided anything... might be using the wrong search terms... Thanks -Bruce bedouglas at earthlink.net -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From ralph at nqionline.com Sat Aug 23 18:55:43 2003 From: ralph at nqionline.com (Ralph Guzman) Date: Sat, 23 Aug 2003 16:55:43 -0700 Subject: [thelist] Basic PHP Shopping Cart In-Reply-To: <5.1.0.14.2.20030823090712.023d9df0@bifrost.agrussell.com> Message-ID: <002301c369d2$108dc140$6401a8c0@ralphxorostodu> Alex, OSCommerce is fairly easy to install and use. Customization is easy once you learn the file structure. Features that you do not need can be removed by editing include files. All the shopping cart functions are stored in classes. If you want to just use the shopping cart but not it's catalog you will have to modify these classes. If you are familiar with Object Oriented Code this shouldn't be too difficult. -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Alex Jones Sent: Saturday, August 23, 2003 7:10 AM To: thelist at lists.evolt.org; thelist at lists.evolt.org Subject: RE: [thelist] Basic PHP Shopping Cart At 04:08 PM 8/22/2003, Ralph Guzman wrote: >Alex, > >If you are looking for a standalone shopping cart have a look at >Oscommerce: > >http://www.oscommerce.com > >I think it has all the features you need and it also has a big >contribution list where you can find updates or addons: Ralph, I have looked at OSCommerce but am a bit worried that it has more features than I need and could prove cumbersome. Is it easy to just use the shopping cart and not use its product catalog side of things? >http://www.oscommerce.com/community/contributions > >If you are looking for a CMS with shopping cart then have a look at >ezPublish. > >http://www.ez.no/ Actually, that is the CMS I am using. All in all I am pretty happy with it, but I need more flexibility in the shopping cart... >Ralph > >-----Original Message----- >From: thelist-bounces at lists.evolt.org >[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Alex Jones >Sent: Friday, August 22, 2003 9:50 AM >To: thelist at lists.evolt.org >Subject: [thelist] Basic PHP Shopping Cart > >Howdy all, > >The CMS that we've installed and added content to doesn't appear to meet > >our unique needs on the shopping cart side of things. At this point I >have a couple of options: write a cart from scratch or choose a third party >cart. As we are on a very tight deadline I am exploring the idea of a >third party cart. I would truly appreciate your recommendations for a >simple cart. I do not want/need a cart that does product management as >that is already covered by our CMS. > >Requirements: >- PHP/MySQL >- Easily customized output >- Ability to define simple shipping logic: local vs. international & >below a certain price get free shipping >- Ability to provide multiple shipping options >- Ability to define tax rate based on destination state (U.S.) - VAT is >not needed >- Ability to have three full addresses (shipping, billing, delivery) > >Basically I want the user to click a standard submit button on one of >our product pages to add items to the cart - I would prefer to send the >variables via POST. > >The form is to be e-mailed (within our network) so I do not need any >form of payment gateways. -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From joshua at waetech.com Sat Aug 23 22:03:02 2003 From: joshua at waetech.com (Joshua Olson) Date: Sat, 23 Aug 2003 23:03:02 -0400 Subject: [thelist] mySQL/Forms - keeping line breaks References: <20030824024452.9115.qmail@web12605.mail.yahoo.com> Message-ID: <00bf01c369ec$418bdfb0$0300a8c0@client1> ----- Original Message ----- From: "Tom Dell'Aringa" Sent: Saturday, August 23, 2003 10:44 PM > On to my next problem... > > When I pull a story from my DB, it comes in as one looooong string of > text and html. This makes it very difficult to edit an article after > it has been saved to the DB. > > Is there any way to keep the line breaks intact when I pull it into > my form so it is more readable? Tom, the way I sometimes deal with this is to actually have two fields in the database--one for the unformatted editable text, another for the formatted presentation text. Another approach (perhaps even better) is to keep the raw text in the database and the formatted text (for presentation) on a file where you can simply include it without needing to hit the database. Good luck and HTH, <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168 From Anthony at Baratta.com Sun Aug 24 00:45:44 2003 From: Anthony at Baratta.com (Anthony Baratta) Date: Sat, 23 Aug 2003 22:45:44 -0700 Subject: [thelist] mySQL/Forms - keeping line breaks In-Reply-To: <20030824024452.9115.qmail@web12605.mail.yahoo.com> Message-ID: <5.1.0.14.2.20030823223948.0416b090@baratta.com> At 07:44 PM 8/23/2003, Tom Dell'Aringa wrote: >Is there any way to keep the line breaks intact when I pull it into >my form so it is more readable? Are you stripping the \n before it goes into the DB? Are you dumping the db data into a Text Area? If you've kept the line breaks and have a text area box, try using "wrap" attribute. --- Anthony Baratta President Keyboard Jockeys "Conformity is the refuge of the unimaginative." From joshua at waetech.com Sun Aug 24 01:04:23 2003 From: joshua at waetech.com (Joshua Olson) Date: Sun, 24 Aug 2003 02:04:23 -0400 Subject: [thelist] mySQL/Forms - keeping line breaks References: <20030824024452.9115.qmail@web12605.mail.yahoo.com> Message-ID: <00e001c36a05$96c5ec00$0300a8c0@client1> ----- Original Message ----- From: "Tom Dell'Aringa" Sent: Saturday, August 23, 2003 10:44 PM > When I pull a story from my DB, it comes in as one looooong string of > text and html. This makes it very difficult to edit an article after > it has been saved to the DB. > > Is there any way to keep the line breaks intact when I pull it into > my form so it is more readable? Tom, Misread your post. Sorry about that. I gave you a good solution to a completely different problem. The following is a brief "what you need to know" guide on getting started with Merchant Accounts for use with eCommerce. http://ecommerce.internet.com/how/paid/article/0,3371,10364_208591,00.html <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168 From thelist at meidomus.com Sun Aug 24 05:06:17 2003 From: thelist at meidomus.com (Burhan Khalid) Date: Sun, 24 Aug 2003 06:06:17 -0400 Subject: [thelist] Office 2003, XML, and CMS In-Reply-To: References: Message-ID: <1061719577.3f488e1909c50@www.meidomus.com> Quoting GravyFace : [ snip ] > I know very little practically about XML, but am familiar with XML > conceptually -- to save me from wading through the W3C stew, can anyone give > me an explanation of how I could/should Parse an XML file, dumping into a DB > (SQL), and store the XML tags and content "as is": > [ /snip ] Well, let me give you a quick rundown of XML parsing (as I'm swimming in it everyday on this current project). There are basically two kinds of parsers. SAX and DOM. SAX parsers are the kind that run through the entire XML file, and you have to capture "events" such as an open tag, and ending tag, end of file, etc. and then handle the situation in your code. The DOM parser (which I hear is becoming the "standard") will run through your XML file and return to you a DOM-style tree of your XML file. Each "node" is a tag, and you can use the familiar dot (.) syntax to traverse the tree. Once you understand the two kinds of parsers, then its easier to write your own custom "parser" that extends either of these. I have written a small example (tutorial) in PHP that shows you how to parse a XML file using the built-in parser that uses the expat library. In addition to all this goodness, there are plenty of XML parsing classes available for your particular brand of programming language. For PHP lovers, there are a few in PEAR, and a few floating around in phpclasses.org. If you are a .NET developer, most of the XML parsing stuff is taken care of for you...thanks to the almost religious support of XML in .NET. Once you can parse the XML file, you can do anything you want with the information. Storing it in a DB (like your example), would just be a matter of writing the appropriate SQL statements. I can give you a quick PHP example that does this for you (given your sample XML file) : type = ""; /* set other variables to default values */ } function setType($x) { $this->type = $x; } /* other set functions */ function insert($dbinfo) { /* $dbinfo is an array that holds your database information. Once you have opened a connection, simply insert the values from the class. */ $strQuery = "INSERT INTO [...] VALUES('$this->author',"; } } $current = ""; //holds the current tag $obj = new article(); //our article object $dbinfo = new Array(); //db information $dbinfo['host'] = "localhost"; //etc function start_tag($parser, $name, $attribs) { global $current = $name; //sets the current tag /* We check what tag the parser is processing if its on the article tag, then attribs, which is an array that holds the attributes for the current tag, will be populated, and we set the type of our article in the class. */ if ($current == "ARTICLE") { $obj->setType($attribs["TYPE"]); } } /* Our parser will call this function when it is reading the contents of a tag. We will check what tag we are on via $current and then call the appropriate method in the class. */ function tag_contents($parser, $data) { global $current; //current tag /* $data is what the contents of the tag are...stuff between the opening and closing tags */ if ($current == "TITLE") { $obj->setTitle($data); } /* more if checks */ } /* our parser will call this function when it reaches an ending tag */ function end_tag($parser,$name) { $global $dbinfo; if($name == "ARTICLE") { /* we have reached the end of one article's information, so insert it into the database */ $obj->insert($dbinfo); } } // Finally, we start up our parser // We set the element handlers, and the character data handler. xml_set_element_handler($xmlparser, "start_tag", "end_tag"); xml_set_character_data_handler($xmlparser, "tag_contents"); $filename = "sample.xml"; if (!($fp = fopen($filename, "r"))) { die("cannot open ".$filename); } while ($data = fread($fp, 4096)){ //strip whitespace $data=eregi_replace(">"."[[:space:]]+"."<","><",$data); if (!xml_parse($xmlparser, $data, feof($fp))) { $reason = xml_error_string(xml_get_error_code($xmlparser)); $reason .= xml_get_current_line_number($xmlparser); die($reason); } } ?> > This... > >
> News Flash: Maple Leafs won the Stanley Cup! > After an overwhelmingly-dominant season, the Maple Leafs have > finally brought Lord Stanley home! > GravyFace > blah blah blah BLAH!. blah blah id=2>BLAAAAAH! >
I'm assuming you mean > Some of the nodes would be parsed of their content and inserted as plain > text/integer (Type, Title etc), while others (body) would retain their > "markup" for later XSLT/CSS presentation processing ('emphasis' becomes > "font: verdana bold 12px;"). You can take care of all this in the sample article() class (in my example), or in whatever object you choose to represent your xml data. > > I do have some concerns that I may be approaching this wrong: > > a) should all these articles be stored natively in an XML file and disregard > the DB? I still think that SQL would out-perform the "XML file server" > thing, but I could be wrong. The thing about XML is that its not for data storage, more for data description. Of course if you can get them to somehow skip the xml part and insert it into the database directly, you wouldn't have to deal with the XML parsing headaches :) > b) should I really be using XHTML as I'm primarily using this for the Web > and if we decide to port it somewhere else, at least XHTML is well-formed. XML is going to be better for this imo because you can use XSLT to apply style to your XML documents and have them displayed appropriately. -- Burhan Khalid thelist[at]meidomus[dot]com http://www.meidomus.com From cs1spw at bath.ac.uk Sun Aug 24 10:48:43 2003 From: cs1spw at bath.ac.uk (Simon Willison) Date: Sun, 24 Aug 2003 10:48:43 -0500 Subject: [thelist] Office 2003, XML, and CMS In-Reply-To: <1061719577.3f488e1909c50@www.meidomus.com> References: <1061719577.3f488e1909c50@www.meidomus.com> Message-ID: <3F48DE5B.30403@bath.ac.uk> Burhan Khalid wrote: >>
>> News Flash: Maple Leafs won the Stanley Cup! >> After an overwhelmingly-dominant season, the Maple Leafs have >>finally brought Lord Stanley home! >> GravyFace >> blah blah blah BLAH!. blah blah >id=2>BLAAAAAH! >>
> > I'm assuming you mean Either way it's invalid XML - you can't have attributes in a closing tag. Because XML has to be well formed it must always be properly nested, so when the tag is reached it can logically only belong to the
opening tag (note that quotes around attributes are also mandatory in XML). Thus there is no need to duplicate attributes in the end tag, and in fact doing so will invalidate the XML and cause any compliant parser to stop with an error message. Cheers, Simon Willison From oktellme at earthlink.net Sun Aug 24 15:18:22 2003 From: oktellme at earthlink.net (Lightening) Date: Sun, 24 Aug 2003 16:18:22 -0400 Subject: [thelist] Mac/Windows transfer via USB Message-ID: <007201c36a7c$def6a1a0$c1948318@cucciwb.int> I need to transfer some very large files from a Mac(G4Powerbook OS 9.1) to my pc(Dell Inspiron laptop with XP). This mac does not have writeable CD. I'm thinking to do ma USB transfer. Does anyone know what equipment do we need? Software? thanks Laura From info at gwcreative.com Sun Aug 24 15:38:12 2003 From: info at gwcreative.com (Gregory Wostrel) Date: Sun, 24 Aug 2003 16:38:12 -0400 Subject: [thelist] Mac/Windows transfer via USB In-Reply-To: <007201c36a7c$def6a1a0$c1948318@cucciwb.int> Message-ID: On Sunday, August 24, 2003, at 04:18 PM, Lightening wrote: > I need to transfer some very large files from a Mac(G4Powerbook OS > 9.1) to > my pc(Dell Inspiron laptop with XP). > > This mac does not have writeable CD. I'm thinking to do ma USB > transfer. > Does anyone know what equipment do we need? Software? USB? What do you mean, a USB hard drive connected to the Mac and then to the Dell? Why not just connect them via ethernet. Every Mac made since the stone age (ok, like 1992 or something) has ethernet built in. From the Mac point of view, you just plug it in to the network, turn on file sharing and go. If you want to hook the two of them up peer to peer ( that is directly one to the other without a network hub involved) you need a cross over cable aka "patch cable". It is a piece of cake with Mac OS9 and childlessly simple on OSX. As for what to do on the PC end, I have done it by mucking around for a while but I couldn't help you with the details there. If the Dell has an ethernet card then the transfer should be pretty quick even if it is many gigabytes. Gregory Wostrel gwcreative http://www.gwcreative.com/ gw at gwcreative.com 401.286.9228 Communications and the Art of Simplicity From dw at clara.co.uk Sun Aug 24 16:23:59 2003 From: dw at clara.co.uk (David Williamson) Date: Sun, 24 Aug 2003 22:23:59 +0100 Subject: [thelist] Mac/Windows transfer via USB In-Reply-To: <007201c36a7c$def6a1a0$c1948318@cucciwb.int> Message-ID: Laura How large a file? I just bought a Disgo - USB thumbdrive - which might work They are available with upto 1Gb memory capacity and are supposed to work seamlessly when moving data between PCs and Macs Dave -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Lightening Sent: 24 August 2003 21:18 To: thelist Subject: [thelist] Mac/Windows transfer via USB I need to transfer some very large files from a Mac(G4Powerbook OS 9.1) to my pc(Dell Inspiron laptop with XP). This mac does not have writeable CD. I'm thinking to do ma USB transfer. Does anyone know what equipment do we need? Software? thanks Laura -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! From john at neoncowboy.com Sun Aug 24 16:59:16 2003 From: john at neoncowboy.com (John Corry) Date: Sun, 24 Aug 2003 11:59:16 -1000 Subject: [thelist] php/mySQL update problem In-Reply-To: <20030824003721.89888.qmail@web12603.mail.yahoo.com> References: <20030824003721.89888.qmail@web12603.mail.yahoo.com> Message-ID: <3F493534.9090108@neoncowboy.com> I always begin by writing the function to return the query as text on the page. That makes it easier to find all the quote escapes, missing commas and other problems that invariably come up when doing complex concatenations. '$var' won't get parsed, you have to do it like: "WHERE field = '".$var."' Try printing out the query and pasting it into phpMyAdmin to see if it will run... John Corry PS - anyone know how to make thunderbird default messages to plain text? Tom Dell'Aringa wrote: >Hi, > >I'm trying to do an update of an article. My update does not seem to >be working. > > From harvester at lists.evolt.org Sun Aug 24 18:00:30 2003 From: harvester at lists.evolt.org (harvester at lists.evolt.org) Date: 24 Aug 2003 23:00:30 -0000 Subject: [thelist] Tip Harvest for the Week of Monday Aug 18, 2003 Message-ID: <20030824230030.31980.qmail@acornparenting.org> The tip harvest for the Week of Monday Aug 18, 2003 has been added to the lists.evolt.org site. Get it at: http://lists.evolt.org/harvest/show.cgi?w=20030818 Week at a glance listing at: http://lists.evolt.org/harvest/week.cgi?w=20030818 Harvest Summary --------------- Number of messages: 385 Number of tips : 10 Tip Authors ----------- Cayley Vos (2) Frank Marion (2) Joshua Olson (1) Paul Cowan (1) rudy (2) Sam-I-Am (1) Simon Willison (1) Tip Types --------- Anti-Virus (1) Blogging (1) Extended Find/Replace in Homesite (1) Globalization (1) MySQL (1) Search Engines (2) Security (1) SEO (1) sql (1) From pixelmech at yahoo.com Sun Aug 24 18:23:08 2003 From: pixelmech at yahoo.com (Tom Dell'Aringa) Date: Sun, 24 Aug 2003 16:23:08 -0700 (PDT) Subject: [thelist] mySQL/Forms - keeping line breaks In-Reply-To: <5.1.0.14.2.20030823223948.0416b090@baratta.com> Message-ID: <20030824232308.90683.qmail@web12603.mail.yahoo.com> --- Anthony Baratta wrote: > Are you stripping the \n before it goes into the DB? Are you > dumping the db data into a Text Area? I am not (actively) stripping the \n - unless its somehow taking place w/o me knowing it. I am dumping it into a textarea. > If you've kept the line breaks and have a text area box, try using > "wrap" attribute. Which attribute? virtual | soft | hard.. Tom ===== http://www.pixelmech.com/ :: Web Development Services http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial Case for Adopting Web Standards] "That's not art, that's just annoying." -- Squidward From cs1spw at bath.ac.uk Sun Aug 24 19:51:39 2003 From: cs1spw at bath.ac.uk (Simon Willison) Date: Sun, 24 Aug 2003 19:51:39 -0500 Subject: [thelist] auto-image-resizing best results Message-ID: <3F495D9B.70901@bath.ac.uk> Hi all, What method of automatically resizing photographs gives the best quality results? This is for automatically generating both thumbnails (quality not too important) and 600px wide images (very important) from high resolution digital photos. I've been experimenting with GD with PHP, and although the results it gives are adequate for producing thumbnails they are slightly flakey for larger images - they're not bad, but they're not brilliant either. When I resize a photograph in Fireworks MX (with resample / bicubic, which are the default settings) the results are stunning. Does anyone know of a tool that can be run on a Unix server that produces a similar quality? Thanks, Simon Willison From aredridel at nbtsc.org Sun Aug 24 20:07:53 2003 From: aredridel at nbtsc.org (Aredridel) Date: Sun, 24 Aug 2003 19:07:53 -0600 Subject: [thelist] auto-image-resizing best results In-Reply-To: <3F495D9B.70901@bath.ac.uk> References: <3F495D9B.70901@bath.ac.uk> Message-ID: <1061773673.6996.17.camel@mizar.nbtsc.org> On Sun, 2003-08-24 at 18:51, Simon Willison wrote: > Hi all, > > What method of automatically resizing photographs gives the best quality > results? This is for automatically generating both thumbnails (quality > not too important) and 600px wide images (very important) from high > resolution digital photos. I've been experimenting with GD with PHP, and > although the results it gives are adequate for producing thumbnails they > are slightly flakey for larger images - they're not bad, but they're not > brilliant either. > > When I resize a photograph in Fireworks MX (with resample / bicubic, > which are the default settings) the results are stunning. Does anyone > know of a tool that can be run on a Unix server that produces a similar > quality? Absolutely. ImageMagick. It's phenomenal, a host of utilities callable by a shell/system command, and included with most linux distros. There's also a php-imagick extension that really is nice. I use it on http://unicas.com/ for auto-resizing product pictures from their (huge) originals to the sizes shown on the site. Ari From dianesoini at earthlink.net Sun Aug 24 21:04:27 2003 From: dianesoini at earthlink.net (Diane Soini) Date: Sun, 24 Aug 2003 19:04:27 -0700 Subject: [thelist] Question about proper tag In-Reply-To: <200308240405.19QSGa6a53NZFlr0@killdeer> Message-ID: <75058C6D-D6A0-11D7-911E-00039358CB42@earthlink.net> I have a question about the proper "semantic" tag if you want something to serve as both a heading and an anchor. Do you nest tags and tags? What's the best way to do it? An example would be if I made something like a site map. Main sections would be headings, but would also link to the index page of the section. Below each section would be lists of links. From rudy937 at rogers.com Sun Aug 24 22:05:26 2003 From: rudy937 at rogers.com (rudy) Date: Sun, 24 Aug 2003 23:05:26 -0400 Subject: QRe: [thelist] Question about proper tag References: <75058C6D-D6A0-11D7-911E-00039358CB42@earthlink.net> Message-ID: <000e01c36ab5$c7a2b5a0$52639c18@r9373j4yqbe8dy> > I have a question about the proper "semantic" tag if you want something > to serve as both a heading and an anchor. Do you nest tags and > tags? What's the best way to do it? that's a great question > An example would be if I made something like a site map. Main sections > would be headings, but would also link to the index page of the section. > Below each section would be lists of links. that example is easy

Section

this is not a problem because the link is clearly a link, yet its place in the site map clearly indecates it's a heading trickier is if an H is also an anchor, i.e. part way down the page you have

Section

and, say, a table of contents at the top of the page links to it this has always given folks fits, because of the style that the A gives the heading -- it looks like a link but isn't to get around it many people do this --

Section

but i think the nested A is semantically better just style A completely differently than A:LINK rudy From madstone at madstone.net Sun Aug 24 22:16:03 2003 From: madstone at madstone.net (Jorah Lavin) Date: Sun, 24 Aug 2003 23:16:03 -0400 Subject: [thelist] Question about proper tag In-Reply-To: <75058C6D-D6A0-11D7-911E-00039358CB42@earthlink.net> References: <200308240405.19QSGa6a53NZFlr0@killdeer> Message-ID: <5.2.1.1.0.20030824231317.009ee380@pop3.norton.antivirus> At 22:04 08/24/03, you wrote: >I have a question about the proper "semantic" tag if you want something to >serve as both a heading and an anchor. Do you nest tags and tags? I'd link it like that sometimes, it makes the most sense that the heading of the area you are linking to is also the start of the area the link takes you to, yes? Sometimes, though, I want the visual effect of the header being a bit of a way down from the top edge of the screen. Then I'll break the "correct" way and place the anchor higher up on the page. I should probably be defining a top margin or top padding or something instead. -Jorah From paul at teltest.com Sun Aug 24 23:24:42 2003 From: paul at teltest.com (Paul Bennett) Date: Mon, 25 Aug 2003 16:24:42 +1200 Subject: [thelist] [PHP] parsing xml Message-ID: <3F498F8A.8020007@teltest.com> Greetings fellow 'volters I am parsing an xml file from a seperate application and placing the data into a database. The parser I have developed is very simple and works. However, when I received a sample file from said "other application" developers, I noticed that there are multiple instances of the same tag which would currently choke my parser. Example 1: The parent tag for each major data grouping is: "Programme" This tag name also appears under the node "Fees", thus my parser thinks that when it hits this tag that the programme information is complete and all heckfire breaks loose. Example 2: The title of each "Programme" is contained within the tag "Title", but this tag also is present under a node named "Careers" [Insert sobbing sound here] I have discussed this with the developers who insist it cannot be changed. My questions are: will I be able to distinguish parent nodes with PHP xml parsing functions in order to determine if I at the end of a programme or merely parsing the "Programme" associated with the "Fees"? If so, how? (links to tutorials etc or RTFM (I have) stuff are fine) Many thanks, -- ------------------------------ Paul Bennett Internet Developer Teltest Electronic Design ------------------------------ Email: paul at teltest.com Phone: 64 4 237 4557 Web: http://www.teltest.com Wap: http://wap.teltest.com From joshua at waetech.com Sun Aug 24 22:36:36 2003 From: joshua at waetech.com (Joshua Olson) Date: Sun, 24 Aug 2003 23:36:36 -0400 Subject: [thelist] Question about proper tag References: <75058C6D-D6A0-11D7-911E-00039358CB42@earthlink.net> <000e01c36ab5$c7a2b5a0$52639c18@r9373j4yqbe8dy> Message-ID: <018801c36aba$1bcd3340$0300a8c0@client1> From: "rudy" Sent: Sunday, August 24, 2003 11:05 PM > and, say, a table of contents at the top of the page links to it > > this has always given folks fits, because of the style that the A gives the > heading -- it looks like a link but isn't > > to get around it many people do this -- > >

Section

> > but i think the nested A is semantically better > > just style A completely differently than A:LINK You mean , right? ;-) If you leave the default Outlook and OE text of "----- Original Mesage ----- " at that top of the post to which you are responding then any tips you post below will not be picked up. This logic was added to the harvester to try to avoid duplicate entries in the archive. My approach... I try to remember to completely drop that line (as I've done with this message) when I plan on adding a tip. If/when you do forget to prep the message and you notice that your tip isn't picked up automatically, contact the list admins and they *may* graciously add the tip to the harvester on your behalf. <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com 706.210.0168