Re: [WebDNA] An unknown error occured // Deadlock avoided
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106921
interpreted = N
texte = You guys are all missing the point. The guys wants it. You all areacting like you have never had to appease a boss or a client and givethem a stupid feature. Whatever, I have to do it all the time with myclients. Ken I too have an issue with telling people what I think, butonce that is done (which it sounds like tommy did) you move on andgive it to them.That all being said, that code looks like it could be done with a twolines of code.Both are as Govinda suggested. Use the REPLACE tag with the APPEND flag.I can see no reason to have the Counter inside a search. It too can bea simple REPLACE with APPEND. I cannot see how you know if someone hasgone offline or not based on the above code. So if you need thatsimply add a timestamp to the db and run a different script, Irecommend from a trigger or cron job, and have it remove anyone thatis idle for more than X minutes. Or something along those linesanyway.Just my 2 cents.RonOn Mon, Jul 11, 2011 at 7:49 AM, Dan Strong
wrote:> Ken I was just think something very similar :-)>> Tommy, also maybe zero in on what info he actually wants to see -- i.e. d=oes> he really need to know a visitor's IP address in semi real time? Does he> really need to know what formvariables are being used on a page in semi r=eal> time? Likely he just wants to know how busy the site is and if that's the> case then perhaps only document a simple count or get creative and every> time someone hits the site, have the server play a sound file of a cash> register from a speaker in his office, so when the site is busy it sounds> like the money is rolling in :-) You get the drift...>> Lastly, if all else fails, hit him between the eyes with the thing everyb=ody> understands: money. They way he's doing it now is costing him in lost sta=ff> time and ultimately money. They way you are proposing to do it will save =you> time and him money, etc. etc. etc.>> -Dan>> On 7/11/2011 7:41 AM, Kenneth Grome wrote:>>>>>> Ken, He is quite pigheaded, I've spoken to him>>> repeatedly, about why he is interested in this>>> information, he has no clear answer, but he>>> signs my paycheck.>>>> Instead of appending the data to a db that's open all the>> time, append it to the end of a text file instead. =A0This is>> basically a log file, so you'll have to roll it daily or>> hourly which is easy in WebDNA.>>>> Then when your pigheaded boss wants to see this data, you>> can give him access to a special template that he must login>> in order to use. =A0When he logs in, your code will create a>> table by including the most recent copy of the text file.>>>> This gives your boss exactly what he wants to see, and the>> code that appends each visitor's click to the log file will>> not affect any databases, so it eliminates the deadlock>> issue.>>>> Sincerely,>> Kenneth Grome>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list.>> To unsubscribe, E-mail to:>> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>
Associated Messages, from the most recent to the oldest:
You guys are all missing the point. The guys wants it. You all areacting like you have never had to appease a boss or a client and givethem a stupid feature. Whatever, I have to do it all the time with myclients. Ken I too have an issue with telling people what I think, butonce that is done (which it sounds like tommy did) you move on andgive it to them.That all being said, that code looks like it could be done with a twolines of code.Both are as Govinda suggested. Use the REPLACE tag with the APPEND flag.I can see no reason to have the Counter inside a search. It too can bea simple REPLACE with APPEND. I cannot see how you know if someone hasgone offline or not based on the above code. So if you need thatsimply add a timestamp to the db and run a different script, Irecommend from a trigger or cron job, and have it remove anyone thatis idle for more than X minutes. Or something along those linesanyway.Just my 2 cents.RonOn Mon, Jul 11, 2011 at 7:49 AM, Dan Strong wrote:> Ken I was just think something very similar :-)>> Tommy, also maybe zero in on what info he actually wants to see -- i.e. d=oes> he really need to know a visitor's IP address in semi real time? Does he> really need to know what formvariables are being used on a page in semi r=eal> time? Likely he just wants to know how busy the site is and if that's the> case then perhaps only document a simple count or get creative and every> time someone hits the site, have the server play a sound file of a cash> register from a speaker in his office, so when the site is busy it sounds> like the money is rolling in :-) You get the drift...>> Lastly, if all else fails, hit him between the eyes with the thing everyb=ody> understands: money. They way he's doing it now is costing him in lost sta=ff> time and ultimately money. They way you are proposing to do it will save =you> time and him money, etc. etc. etc.>> -Dan>> On 7/11/2011 7:41 AM, Kenneth Grome wrote:>>>>>> Ken, He is quite pigheaded, I've spoken to him>>> repeatedly, about why he is interested in this>>> information, he has no clear answer, but he>>> signs my paycheck.>>>> Instead of appending the data to a db that's open all the>> time, append it to the end of a text file instead. =A0This is>> basically a log file, so you'll have to roll it daily or>> hourly which is easy in WebDNA.>>>> Then when your pigheaded boss wants to see this data, you>> can give him access to a special template that he must login>> in order to use. =A0When he logs in, your code will create a>> table by including the most recent copy of the text file.>>>> This gives your boss exactly what he wants to see, and the>> code that appends each visitor's click to the log file will>> not affect any databases, so it eliminates the deadlock>> issue.>>>> Sincerely,>> Kenneth Grome>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list.>> To unsubscribe, E-mail to:>> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>
Ronald Kirkland
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
RE: Credit card processing - UK (1997)
Automatic Forwarding using WebCat (1997)
Documentation Feedback (1997)
Using Currencies other than Dollars (1997)
Running a store on BOTH http and https (1998)
TIP OF THE DAY (2004)
Text data with spaces in them... (1997)
unsubscribe (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Draft Manual, Tutorial, and more (1997)
$Quit, $CloseDatabase corrections (1997)
Missing from Docs [folderName] (1997)
Text data with spaces in them... (1997)
Visitor info (2000)
Almost a there but..bye bye NetCloak (1997)
WebCat2final1 crashes (1997)
expiring a cookie each thursday (2000)
Searching Records by Company (2000)
suffix mapping, use of cache, etc. (1997)
Webten + Webcat running smooth (1998)