dbTalk Databases Forums  

PICK-MV FAQ

comp.databases.pick comp.databases.pick


Discuss PICK-MV FAQ in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom deL
 
Posts: n/a

Default PICK-MV FAQ - 09-09-2005 , 05:08 PM






Hello Folks,

For years I have been using mySQL/php as the basis for creating dynamic
content in web sites. For years I have worked with clumsy, long and
convoluted SQL queries while muttering under my breath 'I sure wish I
could ues PICK for this!'

Well now I can and in experimenting it seems to work very well. Hurray!
No more 'select populations from india upper join pakistan on india.id
= pakistan.mutual_hatred outer join mongolia on ...' LOL

After posting the little dictionary exercize the other day, Glen
suggested using it for a FAQ. It is up and running (although stil a
work in progress):
http://12.168.68.42/faq/

If you would like the source for this please contact me at tomd at
blackflute dot com with a meaningful subject. Included in this source
are things like user authentication, http session management and the
obvious AJAX stuff ... all using openQM as the backend.

Many thanks to:
Dave Walker, Andy Pflueger and Kevin Ruland for making SWIG+php work.

Jon Sisk for letting me use his CDP FAQ to seed the database (I hope to
be able to put it all in there before too long).

Comments, complaints and bug alerts welcomed.
-Tom


Reply With Quote
  #2  
Old   
Scott Ballinger
 
Posts: n/a

Default Re: PICK-MV FAQ - 09-09-2005 , 06:07 PM






I think there is some kind of problem: entering "*" or a keyword gets
me a list of links, but none of them work. In IE I get "javascript
error"; in Firefox, nothing.

Scott Ballinger
Pareto Corporation
Edmonds WA USA
206 713 6006


Reply With Quote
  #3  
Old   
Luke Webber
 
Posts: n/a

Default Re: PICK-MV FAQ - 09-09-2005 , 06:17 PM



Scott Ballinger wrote:
Quote:
I think there is some kind of problem: entering "*" or a keyword gets
me a list of links, but none of them work. In IE I get "javascript
error"; in Firefox, nothing.
Same problem with Firefox here, but in IE I get to see the topic.
Trouble is, the topic is overlaid on the "Enter Key Word ('*' to list
all)" text.

Luke


Reply With Quote
  #4  
Old   
(latimerp)
 
Posts: n/a

Default Re: PICK-MV FAQ - 09-09-2005 , 06:42 PM



Luke Webber wrote:
Quote:
Scott Ballinger wrote:

I think there is some kind of problem: entering "*" or a keyword gets
me a list of links, but none of them work. In IE I get "javascript
error"; in Firefox, nothing.


Same problem with Firefox here, but in IE I get to see the topic.
Trouble is, the topic is overlaid on the "Enter Key Word ('*' to list
all)" text.

Luke
Mozilla seems to work fine. Try entering a single letter.
The links work as well. Very interesting stuff.

Patrick <;=)


Reply With Quote
  #5  
Old   
Tom deL
 
Posts: n/a

Default Re: PICK-MV FAQ - 09-09-2005 , 08:01 PM



Hi Scott,

Quote:
I think there is some kind of problem: entering "*" or a keyword gets
me a list of links, but none of them work. In IE I get "javascript
error"; in Firefox, nothing.
Thanks for taking the time. What version of Windows and IE are you
using? I am unable to reproduce this. Everything works as expected when
I test with:

Win2K / IE5
Win2K / Firefox
Win2K / Netscape7
WinXP / IE6
WinXP / Firefox
WinXP / Netscape7
Debian Stable / Firefox
Debian Stable / Mozilla5
Debian Stable / Epiphany1.4.8
Debian Stable / Galeon1.3.20
Debian Stable / Konqueror3.2.2

I haven't tried IE/Wine but ... well, I probably won't LOL Don't have a
MAC so can't try Safari but have found that usually if Konqueror works,
so does Safari.

I appreciate the input! Error messages would be a big help, does Microsoft
provide a javaScript console?
-Tom



Reply With Quote
  #6  
Old   
Tom deL
 
Posts: n/a

Default Re: PICK-MV FAQ - 09-09-2005 , 08:05 PM



Hi Luke,

Quote:
Same problem with Firefox here, but in IE I get to see the topic.
It is interesting that Firefox doesn't work because that is my main
browser, the one I have always used for development. I don't have a
Windoze box here so can't re-check but will in the morning.

Can you pop open the javascript console and share the contents?

Quote:
Trouble is, the topic is overlaid on the "Enter Key Word ('*' to list
all)" text.
Yes, I neglected to set a width so with smaller resolutions/large fonts
you will have that, will fix this in the morning as well.

Thanks!
-Tom



Reply With Quote
  #7  
Old   
Tom deL
 
Posts: n/a

Default Re: PICK-MV FAQ - 09-09-2005 , 09:43 PM



Hi Patrick,

Quote:
Mozilla seems to work fine. Try entering a single letter.
The links work as well. Very interesting stuff.

Patrick <;=)
Stopped in before hitting the sack ... thanks for that hint! ('Try
entering a single letter') Indeed when the <Enter> key was pressed in
Firefox the form would be submitted. Long ago I (should have) learned
that the fellow who wrote the stuff *shouldn't* be the fellow who does
the beta testing ... he knows too well how to use it <g>

I have effected an ugly but I think effective fix for this. Will look
at it in the morning for a more 'proper' repair.

Thanks again,
-Tom



Reply With Quote
  #8  
Old   
murthi
 
Posts: n/a

Default Re: PICK-MV FAQ - 09-10-2005 , 08:46 AM



IE 5.5+ on XP+SP2.

Full keyword entry does nothing, single character works, but what does it
mean? "L" for instance, returns Pick on Unix and Native Open, "A" returns
CDP Common Answer and Pick on Unix...what's the connection?

After a few entries which work, I consistently get:
Unable to read item 'Test_formatting' Error: '2'
Yes, there is a IE/Windows javascript debugger/console, but this appears to
be a php or object error, so that's no help.

Aside: Curiosity killed the cat. Looking at the source, I note this:
eval('document.all.' + name);

eval calls the jscript compiler internally to evaluate the expression. On
most pages it does not matter a whit, but if you are doing any extensive
programming in javascript, this is horrendously expensive. In our Webapp,
our multi-value display was changed from using evals extensively to more
rational code, and there was an 90% increase in speed, translating to a drop
from 2 seconds to 0.2 for, say, 100-line displays (Maybe this says we
shouldn't be using javascript!)

And, in almost all cases, it is unnecessary; the above could be (syntax
which also works on NS)
document.all[ name ];

Besides, why wouldn't document.getElementById(name); work on all browsers?

Finally, "name" is a semi-reserved word in javascript; if scope is not
correctly setup, it references window.name, and if you change that, it leads
to curious and difficult-to-debug errors down the road. Been there, done
that.

Chandru Murthi

"Tom deL" <ted (AT) blackflute (DOT) com> wrote

Quote:
Hi Scott,

I think there is some kind of problem: entering "*" or a keyword gets
me a list of links, but none of them work. In IE I get "javascript
error"; in Firefox, nothing.

Thanks for taking the time. What version of Windows and IE are you
using? I am unable to reproduce this. Everything works as expected when
I test with:

Win2K / IE5
Win2K / Firefox
Win2K / Netscape7
WinXP / IE6
WinXP / Firefox
WinXP / Netscape7
Debian Stable / Firefox
Debian Stable / Mozilla5
Debian Stable / Epiphany1.4.8
Debian Stable / Galeon1.3.20
Debian Stable / Konqueror3.2.2

I haven't tried IE/Wine but ... well, I probably won't LOL Don't have a
MAC so can't try Safari but have found that usually if Konqueror works,
so does Safari.

I appreciate the input! Error messages would be a big help, does Microsoft
provide a javaScript console?
-Tom




Reply With Quote
  #9  
Old   
Tom deL
 
Posts: n/a

Default Re: PICK-MV FAQ - 09-10-2005 , 10:38 AM



Hi Murthi,

Thank you for taking the time to look.

Quote:
IE 5.5+ on XP+SP2.

Full keyword entry does nothing, single character works, but what does it
mean? "L" for instance, returns Pick on Unix and Native Open, "A" returns
CDP Common Answer and Pick on Unix...what's the connection?
None ... but thanks for the help there. The point was really the php
openQM module and I probably shouldn't have muddied the waters with the
stupid computer tricks ;-)

The database is very small and experimental right now and I had
originally simply stuck some keywords into the index. Since you pointed
out that it is pretty meaningless this way I have re-indexed the
keywords to include the title of the item.

In the plans (if this goes beyond 'playing with the toys') is a search
function that will search the body of the FAQ for text, weighting
results by number of hits, doo-dah, doo-dah ...

Quote:
After a few entries which work, I consistently get:
Unable to read item 'Test_formatting' Error: '2'
Yes, there is a IE/Windows javascript debugger/console, but this appears to
be a php or object error, so that's no help.
Ah, you apparently clicked on a 'See Also' entry that was orphaned in
testing the delete function (which now correctly removes the
SeeAlso's). I have manually removed those.

Quote:
Aside: Curiosity killed the cat. Looking at the source, I note this:
eval('document.all.' + name);

eval calls the jscript compiler internally to evaluate the expression. On
most pages it does not matter a whit, but if you are doing any extensive
programming in javascript, this is horrendously expensive. In our Webapp,
And I am not (extensively programming in JS). This is a simple example
script.

For years I have avoided doing much beyond the 'necessary evil' in JS
due to the stupidity of the browser wars, just too much work and too
flaky for my needs. Unfortunately old JS concepts and techniques are
still with me.

Quote:
our multi-value display was changed from using evals extensively to more
rational code, and there was an 90% increase in speed, translating to a drop
from 2 seconds to 0.2 for, say, 100-line displays (Maybe this says we
shouldn't be using javascript!)
Possibly. Have you considered the visitor trust implications of basing
an application on remote scripting? Lots of fear mongering going on out
there regarding this technology.

Quote:
And, in almost all cases, it is unnecessary; the above could be (syntax
which also works on NS)
document.all[ name ];

Besides, why wouldn't document.getElementById(name); work on all browsers?
It likely would. Again, the point here wasn't javaScript but thanks for
the tips.
-Tom

Quote:
Finally, "name" is a semi-reserved word in javascript; if scope is not
correctly setup, it references window.name, and if you change that, it leads
to curious and difficult-to-debug errors down the road. Been there, done
that.


Chandru Murthi

"Tom deL" <ted (AT) blackflute (DOT) com> wrote in message
news:1126314090.225743.307230 (AT) g47g2000cwa (DOT) googlegroups.com...
Hi Scott,

I think there is some kind of problem: entering "*" or a keyword gets
me a list of links, but none of them work. In IE I get "javascript
error"; in Firefox, nothing.

Thanks for taking the time. What version of Windows and IE are you
using? I am unable to reproduce this. Everything works as expected when
I test with:

Win2K / IE5
Win2K / Firefox
Win2K / Netscape7
WinXP / IE6
WinXP / Firefox
WinXP / Netscape7
Debian Stable / Firefox
Debian Stable / Mozilla5
Debian Stable / Epiphany1.4.8
Debian Stable / Galeon1.3.20
Debian Stable / Konqueror3.2.2

I haven't tried IE/Wine but ... well, I probably won't LOL Don't have a
MAC so can't try Safari but have found that usually if Konqueror works,
so does Safari.

I appreciate the input! Error messages would be a big help, does Microsoft
provide a javaScript console?
-Tom



Reply With Quote
  #10  
Old   
Bill H
 
Posts: n/a

Default Re: PICK-MV FAQ - 09-10-2005 , 08:20 PM



Scott:

I don't have that problem with Firefox. [phew!] It actually works on IE
(the backspace key is your friend here, I think).

Bill

"Scott Ballinger" <scott.ballinger (AT) gmail (DOT) com> wrote

Quote:
I think there is some kind of problem: entering "*" or a keyword gets
me a list of links, but none of them work. In IE I get "javascript
error"; in Firefox, nothing.

Scott Ballinger
Pareto Corporation
Edmonds WA USA
206 713 6006




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.