Search the web
Sign In
New User? Sign Up
dqsdd · Dave's Quick Search Deskbar Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1 - 30 of 29505   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#30 From: "S. Morgan Friedman" <morgan@...>
Date: Thu Nov 8, 2001 1:55 pm
Subject: Fwd: Re: quicksearch -- great tool!
morgan@...
Send Email Send Email
 
hi all -

i just had a question regarding quicksearch, and david suggested i send it
to the group. see below. it's a great tool--no more google toolbar for me
:) thanks!

-morgan

>From: "David Bau" <davidbau@...>
>To: morgan@...
>Subject: Re: quicksearch -- great tool!
>Date: Thu, 08 Nov 2001 08:37:07 -0500
>
>There's got to be a way, but I don't know the trick off the top of my
>head. Maybe somebody on the dqsdd group would have an answer for you.
>(Have you seen the yahoo discussion group? You can just email questions
>into dqsdd@yahoogroups.com)
>
>D
>
>
>>From: "S. Morgan Friedman" <morgan@...>
>>To: davidbau@...
>>Subject: quicksearch -- great tool!
>>Date: Thu, 08 Nov 2001 08:29:08 -0500
>>
>>
>>hi david -
>>
>>quicksearch is *great*. i installed it and i love it! thanks for creating
>>it :)
>>
>>i have a question about it i want to ask you. i've been modifying it to
>>change some of your quicksearches to site that i use more frequently -- one
>>of which is amazon.com. the quicksearch gives me a runtime error with the
>>amazon code. why? here's the offending line:
>>
>>function amz(q)
>>{
>>         document.amzf.field-keywords.value=q;
>>         document.amzf.submit();
>>}
>>
>>more particularly, it is the "field-keywords" variable that crashes it.
>>when i comment out that line, or rename it to "fieldkeywords" it works
>>fine. the problem then is that javascript is having helluva time seeing the
>>variable with the dash in it. this problem may be better suited for a
>>javascript guru (perhaps you are also one? your JS code is impressive!) but
>>i'm wondering if you know how to fix this. thanks! :)
>>
>>-morgan
>>
>>
>>
>>--
>>______________________
>>steven morgan friedman
>>http://www.westegg.com
>>"I have always imagined that paradise will be a kind of library."
>>"Me figuraba el paraiso bajo la especie de una biblioteca."
>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--
______________________
steven morgan friedman
http://www.westegg.com
"I have always imagined that paradise will be a kind of library."
"Me figuraba el paraiso bajo la especie de una biblioteca."

#29 From: greg.mitchell@...
Date: Wed Nov 7, 2001 7:16 pm
Subject: Added Babelfish translation
greg.mitchell@...
Send Email Send Email
 
I went ahead and added a babelfish translation to the searchbar - it takes
the form of:

en_fr stuff to translate, or
en_de http://www.urltranslate.com, or
stuff to translate en_ko, etc.

As far as the two character language codes go, they're:
en: English
de: German (English, French and back)
fr: French (English, German and back)
ko: Korean (English and back)
zh: Chinese (English and back)
it: Italian (English and back)
ja: Japanese (English and back)
pt: Portuguese (English and back)
es: Spanish (English and back)
ru: Russian (only from Russian to English, not reverse)

Ah, you say - so how do I get this magical code?

Add the following lines:
==================================
// detects babelfish translation requests
   if (babel(t)) return false;
==================================

near the line
if (currency(t)) return false;
or the
if (mathexp(t)) return false;
or the
if (phoneno(t)) return false;
  - in that neighbourhood at any rate.

Then add the following function defs somewhere:
======================================
function babel(t)
{
      // detect strings that ask for a babelfish translation
      trans
=
"(en_zh|en_fr|en_de|en_it|en_ja|en_ko|en_pt|en_es|zh_en|fr_en|fr_de|de_en|de_fr|\
it_en|ja_en|ko_en|pt_en|ru_en|es_en)"
      prot = new RegExp(trans + "(.+)","gi");
      prot2 = new RegExp("(.+)" + trans,"gi");
      if (prot.exec(t))
   {
      temp1 = t.replace(prot,"$1");
      temp2 = t.replace(prot,"$2");
           babeltranslate(temp1,temp2);
           return true;
      }
      else
           if (prot2.exec(t))
           {
                temp2 = t.replace(prot2,"$1");
                temp1 = t.replace(prot2,"$2");
                babeltranslate(temp1,temp2);
                return true;
           }
           else
                return false;
}

function babeltranslate(l,q)
{
      //q is the query, l is the language choices
      prot = new RegExp("^(http://|https://)([\\-a-z0-9]+\\.)*[\\-a-z0-9]+"
+
                     "|^[a-z]:($|\\\\)" +
                     "|^\\\\\\\\[a-z]+($|\\\\($|[a-z]+($|\\\\)))", "i");
   dns = new RegExp("^www\.([\\-a-z0-9]+\\.)+[\\-a-z0-9]+$" +
                    "|^([\\-a-z0-9]+\\.)+(com|net|org|edu|gov|mil|[a-z]{2})
$", "i");

   if (prot.exec(q) || dns.exec(q))
   {
     babl.tt.value = "url";
     babl.url.value = q;
   }
   else
   {
     babl.tt.value = "urltext";
     babl.urltext.value = q;
   }
     babl.lp.value = l;
     babl.submit();
}

===========================
Then add the following to the forms section:
===========================
<!-- Babelfish translation -->
<form action="http://babelfish.altavista.com/tr"
       method="post"
       name=babl
       target="_blank">
      <input type=hidden name="doit" value="done">
      <input type=hidden name="lp">
      <input type=hidden name="tt">
      <input type=hidden name="urltext">
      <input type=hidden name="url">
</form>
==========================

I think that's it.

--
Greg Mitchell
Programmer
Potash Corporation of Saskatchewan
greg.mitchell@...

#28 From: Peter Risser <knucklehead000@...>
Date: Wed Nov 7, 2001 5:15 pm
Subject: Re: Problem with the system tray in Windows 2000 Professional SP2
knucklehead000@...
Send Email Send Email
 
Hey, yeah.  That happened to me too!

Peter


--- Ron Vogl <ronvogl@...> wrote:
> I'm really liking the Quick Search Toolbar, but I'm
> having a minor issue.  I have several applications I
> load on startup through the Startup group on the
> Start menu.  Some of these applications place icons
> in the system tray.  Every since I installed the
> Quick Search Toolbar, these applications still load
> (I can see them in the task list in Task Manager),
> but their system tray icons do not appear.  Any
> ideas?
>
> Windows 2000 Professional, Service Pack 2.
>
> -Ron
>


=====
===
Visit 20six20: http://risser.manilasites.com

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

#27 From: "Ron Vogl" <ronvogl@...>
Date: Wed Nov 7, 2001 4:48 pm
Subject: Problem with the system tray in Windows 2000 Professional SP2
ronvogl@...
Send Email Send Email
 
I'm really liking the Quick Search Toolbar, but I'm having a minor issue.  I have several applications I load on startup through the Startup group on the Start menu.  Some of these applications place icons in the system tray.  Every since I installed the Quick Search Toolbar, these applications still load (I can see them in the task list in Task Manager), but their system tray icons do not appear.  Any ideas?
 
Windows 2000 Professional, Service Pack 2.
 
-Ron

#26 From: Peter Risser <knucklehead000@...>
Date: Wed Nov 7, 2001 3:00 pm
Subject: Re: Language translation & IE Toolbar option
knucklehead000@...
Send Email Send Email
 
Oooh, that'd be great.  I can't get babelfish through
my firewall though, so I can't help here.  :)

Peter


--- David Brake <david.brake@...> wrote:
> My task bar is really full already - could you
> produce a version which fits
> in the IE toolbar I can use instead of Google? (If
> the DQSTTD can already
> do this, perhaps you could mention this on the
> page?) Also, could you
> implement a language translation interface for
> http://babelfish.altavista.com/translate.dyn?
>
> Alas as a non-programmer I can't really help
> implement any of these
> suggestions...
>
> David Brake, Internet consultant & freelance
> journalist
> http://davidbrake.org/ and http://blog.org/ (my
> weblog)
>
>


=====
===
Visit 20six20: http://risser.manilasites.com

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

#25 From: greg.mitchell@...
Date: Wed Nov 7, 2001 2:41 pm
Subject: Re: Searches for PHP and MySQL...
greg.mitchell@...
Send Email Send Email
 
>Perhaps some sort of javascript console with an options dialog that could
>be used to hide/display the various menu items? [And in the future, set
>other options, if the Netscape launching code is integrated, for example.]

I think it should be relatively simple to do something like this up, it
will require another page (obviously) that generates the search.htm - this
can be then written to disk using the filesystem object.  It will pop up a
dialog about unsafe activeX and stuff, but short of getting the user to
copy and paste the entire document, I think this is the only way to do it.

I'll have a look at it this afternoon and see what I can come up with.

Greg
====

#24 From: Adam Jury <adamj@...>
Date: Wed Nov 7, 2001 2:31 pm
Subject: Re: Searches for PHP and MySQL...
adamjury
Offline Offline
Send Email Send Email
 
At 18:49 06/11/2001, rick wrote:
>Hi all, Dave asked if I'd post my searches for the PHP Function Reference
>and MySQL Docs, so they're at the bottom of this message.
>
>I had an idea for a Deskbar Generator last weekend and coded up a basic
>one in PHP.  You can view what I have so far at
>http://php.techno-weenie.com/deskbar.  Basically, I was thinking I could
>keep a central database of all the search options and let users pick out
>what they need, with the shortcuts they want.  As Dave pointed out to me,
>my PHP and MySQL options probably won't be very widely used, but the ()
>shortcut would be useful to developers of other programming languages.

I just had time for a quick look at this, and it looks really cool!

I was doing some thinking about customization yesterday - it's easy enough
to chop out the code that displays search engines you're unlikely to ever
use, but doing that after updating to each release of the deskbar would be
tedious.

Perhaps some sort of javascript console with an options dialog that could
be used to hide/display the various menu items? [And in the future, set
other options, if the Netscape launching code is integrated, for example.]

The advantage of the PHP system is the central database of all searches.
However, regenerating your search.htm file from that database would mean
having to re-apply any small mods you've made to the code [For example, I
hacked out the <TITLE>Search</TITLE> tag so it would take up just a little
less space on my taskbar]. The javascript solutions means it would be
possible to add/remove/enable/disable customs searches without having to
re-apply any custom hacks, but you would have to do the more tedious cut
and pasting to insert new searches...

David - I'll try to post the dictionary.com mods - along with some mods I
hope to make to the eBay search - on friday or saturday.

Adam


| adamj@... | http://www.jillted.org | http://tss.dumpshock.com |

#23 From: David Brake <david.brake@...>
Date: Wed Nov 7, 2001 10:31 am
Subject: Language translation & IE Toolbar option
DavidBrake
Offline Offline
Send Email Send Email
 
My task bar is really full already - could you produce a version which fits
in the IE toolbar I can use instead of Google? (If the DQSTTD can already
do this, perhaps you could mention this on the page?) Also, could you
implement a language translation interface for
http://babelfish.altavista.com/translate.dyn?

Alas as a non-programmer I can't really help implement any of these
suggestions...

David Brake, Internet consultant & freelance journalist
http://davidbrake.org/ and http://blog.org/ (my weblog)

#22 From: "rick" <rolson@...>
Date: Wed Nov 7, 2001 1:49 am
Subject: Searches for PHP and MySQL...
rolson@...
Send Email Send Email
 
Hi all, Dave asked if I'd post my searches for the PHP Function Reference and MySQL Docs, so they're at the bottom of this message.
 
I had an idea for a Deskbar Generator last weekend and coded up a basic one in PHP.  You can view what I have so far at http://php.techno-weenie.com/deskbar.  Basically, I was thinking I could keep a central database of all the search options and let users pick out what they need, with the shortcuts they want.  As Dave pointed out to me, my PHP and MySQL options probably won't be very widely used, but the () shortcut would be useful to developers of other programming languages.
 
If anyone likes the idea, I could develop on it some more.  For now though, I just use the 4 options in the database to create my personal slim deskbar. 
 
rick
 
Anyways... on to the code:
 
PHP:
  if (shortcut(t, "()", php)) return false;
 
// if you're looking up the foo() function, this takes you to the foo function reference at http://www.php.net/foo
function php(q)
{
  if (q == "")
  {
    window.open("http://www.php.net/");
  }
  else
  {
    window.open("http://www.php.net/" + q);
  }
}
 
 
MySQL:
  if (shortcut(t, "}", mys)) return false;
 
// performs the search at http://www.mysql.com/doc
function mys(q)
{
  if (q == "")
  {
    window.open("http://www.mysql.com/");
  }
  else
  {
    document.mys.search_query.value=q;
    document.mys.submit();
  }
}
 
<form name=mys
      target=_blank
      action=http://www.mysql.com/doc/manual.php
      method=get>
  <input type="hidden" name="search_query">
  <input type="hidden" name="depth" value="0">
</form>

#21 From: "Damian Maclennan" <damian@...>
Date: Tue Nov 6, 2001 11:10 pm
Subject: Code Submission - Samspade.org search
damian@...
Send Email Send Email
 
Hi All

I sent this to Dave a few days ago. He asked me to post here.
It allows you to do DNS / Whois / Traceroute searches using the utility
at www.samspade.org
Just enter a domain name followed by *s

Here is the code : I am sure you can figure where it all goes

First bit:

if (shortcut(t, "*s",   sam)) return false;

And :

  // Sam Spade
  function sam(q)
  {
    if (q == "")
    {
      window.open("http://www.samspade.org/");
    }
    else
    {
    document.samw.a.value = q;
      document.samw.submit();
    }
  }

And :

  <!-- Samspade lookup -->
  <form name=samw
        target=_blank
        action=http://www.samspade.org/t/lookat
        method=get>
    <input type=hidden name="a">
  </form>

#20 From: Peter Risser <knucklehead000@...>
Date: Tue Nov 6, 2001 9:54 pm
Subject: Re: Feature Request: Currency Conversion
knucklehead000@...
Send Email Send Email
 
Well, I did exclude it on purpose, but it doesn't have
to be that way.  I guess I did it as a way to make
sure that you really wanted to do a currency
conversion and not some other Google look-up.

But it's easily changed, as you said.
:)

Peter


--- greg.mitchell@... wrote:
>
> If you change the RegEx's to [A-Za-z] and do a
> "res[3].toUpperCase()"
> (instead of just res[3])  it should allow
> lower/mixed case without too much
> trouble.
>
> ie.
>
t.match(/([0-9]*.?[0-9]*)(\s*)([A-Z]{3})([<>])([A-Z]{3})/);
>  becomes
>
t.match(/([0-9]*.?[0-9]*)(\s*)([A-Za-z]{3})([<>])([A-Za-z]{3})/);
>
> and
> currxchg(res[1], res[5], res[3]);
> becomes
> currxchg(res[1], res[5].toUpperCase(),
> res[3].toUpperCase());
>
> unless there's a reason you excluded lower case that
> I don't know of :)
>
> Greg
>
>


=====
===
Visit 20six20: http://risser.manilasites.com

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

#19 From: greg.mitchell@...
Date: Tue Nov 6, 2001 9:44 pm
Subject: Re: Feature Request: Currency Conversion
greg.mitchell@...
Send Email Send Email
 
If you change the RegEx's to [A-Za-z] and do a "res[3].toUpperCase()"
(instead of just res[3])  it should allow lower/mixed case without too much
trouble.

ie.
t.match(/([0-9]*.?[0-9]*)(\s*)([A-Z]{3})([<>])([A-Z]{3})/);
  becomes
t.match(/([0-9]*.?[0-9]*)(\s*)([A-Za-z]{3})([<>])([A-Za-z]{3})/);

and
currxchg(res[1], res[5], res[3]);
becomes
currxchg(res[1], res[5].toUpperCase(), res[3].toUpperCase());

unless there's a reason you excluded lower case that I don't know of :)

Greg

#18 From: Peter Risser <knucklehead000@...>
Date: Tue Nov 6, 2001 9:31 pm
Subject: currency 2
knucklehead000@...
Send Email Send Email
 
Oh yeah,
It only takes uppercase characters.  If you use
lowercase it won't work.  Also, naturally, it assumes
you know the 3-letter code for the currency you care
about.

Peter

=====
===
Visit 20six20: http://risser.manilasites.com

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

#17 From: Peter Risser <knucklehead000@...>
Date: Tue Nov 6, 2001 9:29 pm
Subject: Re: Feature Request: Currency Conversion
knucklehead000@...
Send Email Send Email
 
Okay. Here.

You enter the number in the format:
###.### XXX>YYY
or
###.### XXX<YYY

it doesn't matter, it always converts from the first
to the second.  Decimals are optional, as are numbers
on both sides.  Thanks to the xe.com script for being
robust enough to even handle a plain decimal!

Have fun,
Peter


====
Add this to the def method after phoneno (phone#)
test:
   // detect strings that look like currency
conversions
   if (currency(t)) return false;

====
Add this somewhere: I put mine right after phoneno():

// detect currency conversion
function currency(t)
{
   // detect strings that look like ABC<CBA or ABC>CBA
   res =
t.match(/([0-9]*.?[0-9]*)(\s*)([A-Z]{3})([<>])([A-Z]{3})/);

   if (res)
   {
     if (res[3] == '<')
	     currxchg(res[1], res[5], res[3]);
     else
	     currxchg(res[1], res[3], res[5]);
     return true;
   }
   return false;
}

====
Add this to the section where it updates various form
values (I put mine right after rvsphn)
// currency exchange
function currxchg(amt, f, t)
{
   document.xchgform.Amount.value=amt;
   document.xchgform.From.value=f;
   document.xchgform.To.value=t;
   document.xchgform.submit();
}

====
Add this to the section where the forms are:
<!-- xe currency conversion -->
<form name=xchgform
       target=_blank
       action="http://www.xe.com/ucc/convert.cgi"
       method=post>
   <input type=hidden name=Amount>
   <input type=hidden name=From>
   <input type=hidden name=To>
</form>




--- ronancremin@... wrote:
> What about adding a currency convertor feature using
> a site such as
> www.xe.com? Useful for people doing expense reports.
> Syntax could be
> something like:
>
> USD>EUR or GBP<USD
>
>


=====
===
Visit 20six20: http://risser.manilasites.com

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

#16 From: ronancremin@...
Date: Tue Nov 6, 2001 7:51 pm
Subject: Feature Request: Currency Conversion
ronancremin
Offline Offline
Send Email Send Email
 
What about adding a currency convertor feature using a site such as
www.xe.com? Useful for people doing expense reports. Syntax could be
something like:

USD>EUR or GBP<USD

#15 From: ronancremin@...
Date: Tue Nov 6, 2001 7:49 pm
Subject: Feature Request: Windows hotkey to jump to dqsdd
ronancremin
Offline Offline
Send Email Send Email
 
It would be really cool if you could have a configurable hot key
binding so that [Windows Key]-D (or whatever) would jump you straight
to the input field. I know you can do this with Windows programs in
general, but I don't know how to bind to a taskbar item.

#14 From: "Peter Watt" <peterwatt@...>
Date: Tue Nov 6, 2001 7:27 pm
Subject: xrefer.com
peterwatt@...
Send Email Send Email
 

Would love to see a link to www.xrefer.com.

 

Peter Watt


#13 From: "Brian Ross" <bsr@...>
Date: Tue Nov 6, 2001 7:18 pm
Subject: 2.1.9: Dogpile Search Bug (and Fix)
bsr@...
Send Email Send Email
 
Dogpile search doesn't work "out of the box" in 2.1.9.

The code on lines 671 & 672 for Dogpile search references the Excite
search form element document.excf.  A simple change on these two
lines, replace excf with dogf and everything works great.

-Brian

#12 From: steve@...
Date: Tue Nov 6, 2001 5:05 pm
Subject: Re: Hot Key Possibility
steve_minutillo
Offline Offline
Send Email Send Email
 
Found an example:

http://www.merrioncomputing.com/

Look for Global Hotkey Source Code... Yes, it does include references
to "ATOMS".... extra scary VB stuff that calls super scary functions
in KERNEL32 and USER32.

(shortcut right to the zip that has the code .. I think the meat is in
ApiHotkey.cls)

http://www.merrioncomputing.com/Download/MCLHotkey.zip


Steve Minutillo

--- In dqsdd@y..., Peter Risser <knucklehead000@y...> wrote:
> What we need is a hot-dog Microsoft coder.  I've been
> told that the secret to defining a Hot Key for Windows
> lies in the concept of "atoms".  You create a global
> atom that keeps a watch out for that particular hot
> key.
>
> Or so I'm told.  I encourage all of you to ask your
> favorite MS-Guru about atoms, hot keys, and how to get
> it all working in Java/VBScript.
>
> Peter
>
> =====
> ===
> Visit 20six20: http://risser.manilasites.com
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com

#11 From: Peter Risser <knucklehead000@...>
Date: Tue Nov 6, 2001 4:56 pm
Subject: Re: Hot Key Possibility
knucklehead000@...
Send Email Send Email
 
Here.
A little more research led me here:

http://www.vbaccelerator.com/codelib/ssubtmr/hotkeyr.htm

But being a VB know-nothing, I have no idea what to do
with it.  If someone could take these concepts and
implement them into the web page...

peter



=====
===
Visit 20six20: http://risser.manilasites.com

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

#10 From: Peter Risser <knucklehead000@...>
Date: Tue Nov 6, 2001 4:44 pm
Subject: Hot Key Possibility
knucklehead000@...
Send Email Send Email
 
What we need is a hot-dog Microsoft coder.  I've been
told that the secret to defining a Hot Key for Windows
lies in the concept of "atoms".  You create a global
atom that keeps a watch out for that particular hot
key.

Or so I'm told.  I encourage all of you to ask your
favorite MS-Guru about atoms, hot keys, and how to get
it all working in Java/VBScript.

Peter

=====
===
Visit 20six20: http://risser.manilasites.com

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

#9 From: vetterh1@...
Date: Tue Nov 6, 2001 4:13 pm
Subject: Search in bookmarks
vetterh1@...
Send Email Send Email
 
Another interesting feature (IMHO) would be to search inside the
bookmarks.
I used to use a cool product called Powermark (www.kaylon.com) that
let you enter keywords to search in your bookmark list.
This feature is especially usefull when you have hundred of bookmark
organised in dozens of folders ;-)

Laurent.

#8 From: vetterh1@...
Date: Tue Nov 6, 2001 3:48 pm
Subject: Hotkey
vetterh1@...
Send Email Send Email
 
Congratulation Dave for that great utility !

However I'd love to be able to start a search by using a hotkey (ex:
ctrl+alt+s) that would switch the focus to the current application
(ex: Word) to the Search toolbar.

I don't know if you can do this directly in the toolbar source, or if
I need to setup a 3rd party utility (which one ???)...

Thanks,
Laurent

#7 From: "Edney Soares de Souza" <edney_s@...>
Date: Tue Nov 6, 2001 3:41 pm
Subject: Re: Public posting
edney_s
Offline Offline
Send Email Send Email
 
Hello David and All! :)
 
Great idea! I'm thinking about a portuguese-br version of the bar with brazilian search engines, may I invite other developers to this group ? So we can develop the portuguese-br version and increase the original english version.
 
Hugs for all
 
Edney Souza
 
----- Original Message -----
From: David Bau
Sent: Terça-feira, 6 de Novembro de 2001 12:07
Subject: [dqsdd] Public posting

If this email is posted, then it means that you can post to this discussion group just by sending mail to dqsdd@yahoogroups.com.
 
This is a nice way to post additions and suggestions if you don't want to go through the process of setting up a yahoo ID for yourself.
 
David

To unsubscribe from this group, send an email to:
dqsdd-unsubscribe@yahoogroups.com



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

#6 From: steve@...
Date: Tue Nov 6, 2001 3:19 pm
Subject: The secret of how to make dqsd use Netscape: WINDOWS SCRIPTING HOST
steve_minutillo
Offline Offline
Send Email Send Email
 
I've figured out how to make it so that anything you do in DQSD pops
up a Netscape window instead of IE.  Windows Scripting Host.

I put this in my copy of "search.htm", just below the <body> tag:

<script language="vbscript">
   Set WshShell = CreateObject("WScript.Shell")
   Sub netscape_open(URL)
     WshShell.Run "D:\APPS\NS6\NETSCP6.EXE -url " & URL, 1, 0
   End Sub
</script>

Yes, it's icky VBScript, but for a good purpose.  This defines a
function (callable from JavaScript even) called "netscape_open()" that
when called by the page, runs Netscape, passing in the URL parameter.
  Now simply replace the appropriate references to "window.open(x)" in
the rest of search.htm with "netscape_open(x)", and you're done.  Also
I had to rewire a bunch of the functions that used this pattern...

document.FORM.FIELD.value = q;
document.FORM.submit();

...to also use netscape_open(), and I had to manually create the base
URL to pass into there by concatenating all the various form
parameters.  Not a big deal.

Once those changes are done, right click on the grippy bar for DQSD
and say "Refresh".

There are some drawbacks to this:

1) When you do say "Refresh", you get a message box warning you about
the dangerous use of ActiveX.  You just have to say "Yes" to that.

2) The path to Netscape is hardcoded.

3) On my system, the new Netscape window is not always in the front.
I can think of at least one easy workaround for this.  (instead of
sending Netscape to the final destination immediately, instead send it
to a intermediate page that has a script on it that makes sure it is
in the front, with the final destination passed as a parameter.  Then
that script redirects to the real location.)

Now that the secret of Windows Scripting Host is revealed, you can
also extend DQSD to run any program on your system.  I changed mine so
that for opening local files it uses "explorer" instead of IE because
I like that interface just a little better.


For this to get merged into the mainline code, we'd need a way for the
user to select what browser to use, and to store that somehow.  I
might work on this just for kicks, DQSD is fun to hack on.

Now if only we had autocomplete....


Steve Minutillo


PS: I have no idea how portable this is.  My configuration is Win2k,
IE5.5, NS6.1.

#5 From: "Chris Farmer" <anomie@...>
Date: Tue Nov 6, 2001 3:09 pm
Subject: Some bugs: decimals, Newsgroup script errors, autocomplete
anomie@...
Send Email Send Email
 
This is a copy of a message I sent to Dave.  He wanted me to post it
here for the permanent record.

------------------------------------------

I love the deskbar and I have used it constantly over the past few
days.

I just found these two little bugs you should know about.  To
reproduce...

1) Type any query in the search bar
2) Hit F1 to show the menu
3) Choose "Newsgroup Search (comma)" from the menu
4) Notice the script error in line 238: Object expected

I don't understand JavaScript well enough to guess what the problem
might be.  Perhaps the comma conflcts somehow with the expression
parsing code? I dunno.  Good luck with that one.

The other bug is much less important.  The math expression heuristics
don't accept ".5" or anything that starts with a decimal as a
number.  You have to type "0.5" or use the = operator to trigger a
math calculation.  Perhaps this is by design and it's not a big
deal.  Just a small nuisance.

Chris

PS: A change I made was to add AUTOCOMPELTE="off" to the "<input
name=q" tag.  This turns off the IE autocomplete option that keeps
popping up. It's somewhat useful to have it on, I suppose, but it
shows a million old Google searches and it can't be reached from the
keyboard so it's more of an annoyance to me than a useful feature.  I
don't imagine this change would have caused my bug, but you never
know.

PPS: Again, thanks for putting this together.  I'll keep my eye out
for useful searches to add.

#4 From: "David Bau" <davidbau@...>
Date: Tue Nov 6, 2001 2:50 pm
Subject: Attachments are supposed to be OK
davidbau
Offline Offline
Send Email Send Email
 
According to the yahoo discussion groups settings, attachments on
this message board are supposed to be OK, so please do include your
modified search.htm's when you're posting enhancements. That way it's
easy for me and others to try them out, and it's also easy for me to
run a "diff" and merge them together.

Thanks!

David

#3 From: knucklehead000@...
Date: Tue Nov 6, 2001 2:35 pm
Subject: Code for Searching Various Music Databases
knucklehead000@...
Send Email Send Email
 
These are searches for
CDNow, CDDB/GraceNote and AllMusic

I used + because I didn't see that it had been used already.
Besides, there are only so many punctuations on the keyboard!

These work as follows:
Enter the search request, followed by a slash, followed by the type
of search to do.  Right now, all searches default to Artist if you
leave the slash off.

To search by artist: a
To search by album title: t
To search by song: s

In allmusic and cdnow, to search by label: l

In allmusic, to search by style: y

For allmusic and CDNow, the search types are exclusive.  You search
one category or another.  For CDDB, you can search all three at once.

For example:

"Brian Eno+" brings up Brian Eno's works at CDNow
"Donnie Iris/a++" brings up any disc by Donnie Iris at CDDB, while
"Donnie Iris/as++" brings up any disc or song about Donnie Iris at
CDDB.
"Spanky+++/t" shows all discs that start with Spanky at Allmusic
"Shadow Dancing+/s" will tell you who recorded the song Shadow
Dancing.


here's the pertinent code changes:
This goes in the part that tests the input:

    if (shortcut(t, "+++",   alm)) return false;
    if (shortcut(t, "++",   cdb)) return false;
    if (shortcut(t, "+",   cdn)) return false;


  ===
This goes in the section where it's scouring the input:

  // cdnow
  function cdn(q)
  {
    res = q.match(/([^\/]+)(\/[AaSsTtLl])?/);

    if (!res)
    {
       window.open("http://www.cdnow.com/");
    }
    else
    {
      document.cdnf.string.value=(res[1] ? res[1] : "");
      document.cdnf.index.value=(res[2] ? res[2].toLowerCase
().substring(1,2) : "a");
      document.cdnf.submit();
    }
  }

  // cddb
  function cdb(q)
  {
    res = q.match(/([^\/]+)((\/)[ats]+)?/);

    if (!res)
    {
       window.open("http://www.cddb.com/");
    }
    else
    {
    dope = "";
      if ((res[2].indexOf('a') > -1) || (res[2].indexOf('A') > -1))
      dope += "artist ";
      if ((res[2].indexOf('t') > -1) || (res[2].indexOf('T') > -1))
      dope += "disc ";
      if ((res[2].indexOf('s') > -1) || (res[2].indexOf('S') > -1))
      dope += "track ";

      document.cdbf.q.value=(res[1] ? res[1] : "");
      document.cdbf.f.value=(res[2] ? dope : "artist");
      document.cdbf.submit();
    }
  }

  // allmusic
  function alm(q)
  {
    res = q.match(/([^\/]+)(\/[AaSsTtLlYy])?/);

    if (!res)
    {
       window.open("http://www.allmusic.com/");
    }
    else
    {
      document.almf.sql.value=(res[1] ? res[1] : "");
      document.almf.opt1.value="1";
      switch (res[2].toLowerCase().substring(1,2))
      {
      case "a": case "A": document.almf.opt1.value="1"; break;
      case "T": case "t": document.almf.opt1.value="2"; break;
      case "s": case "S": document.almf.opt1.value="3"; break;
      case "Y": case "y": document.almf.opt1.value="4"; break;
      case "l": case "L": document.almf.opt1.value="5"; break;
      }
      document.almf.submit();
    }
  }

  ====
This goes in the part that displays the popup menu

        dv() +
        mi("CDNow", "cdn", "+") +
        mi("CDDB/GraceNote", "cdb", "++") +
        mi("AllMusic", "alm", "+++") +


  ====
This goes in the part with all the forms:

  <!-- CDNow lookup -->
  <form name=cdnf
        target=_blank
action="http://www.cdnow.com/cgi-
bin/mserver/pagename=/RP/CDN/FIND/popsearch.html"
        method=post>
    <input type=hidden name="string">
    <input type=hidden name="index">
  </form>

  <!-- CDDB lookup -->
  <form name=cdbf
        target=_blank
        action="http://www.cddb.com/php/search1.php3">
    <input type=hidden name="f">
    <input type=hidden name="q">
  </form>

  <!-- AllMusic lookup -->
  <form name=almf
        target=_blank
        action="http://www.allmusic.com/cg/amg.dll"
        method=post>
    <input type=hidden name="P" value="amg">
    <input type=hidden name="uid" value="SEARCH">
    <input type=hidden name="opt1">
    <input type=hidden name="sql">
  </form>



Thanks for the great program!
And now the support group!
Peter

#2 From: "David Bau" <davidbau@...>
Date: Tue Nov 6, 2001 2:07 pm
Subject: Public posting
davidbau@...
Send Email Send Email
 
If this email is posted, then it means that you can post to this discussion group just by sending mail to dqsdd@yahoogroups.com.
 
This is a nice way to post additions and suggestions if you don't want to go through the process of setting up a yahoo ID for yourself.
 
David

#1 From: "David Bau" <davidbau@...>
Date: Tue Nov 6, 2001 1:20 pm
Subject: Welcome
davidbau
Offline Offline
Send Email Send Email
 
I'm starting this discussion group on Dave's Quick Search Deskbar
Development).

<a href="http://notesbydave.com/toolbar/doc.htm">Dave's Quick Search
Deskbar</a> is a little search textbox you can add to your Windows
taskbar to launch Google, Yahoo, and other searches.

It is licensed under the GNU GPL, which means it's free and open
source! And it's all written in HTML, so it's easily customizable.

Lately a lot of people have been mailing me with enhancements and
fixes, and I've even noticed some cool metatools on the net. I'm
starting to get overwhelmed with the volume of mail in my inbox, so
I'm setting up this discussion group so that people can share their
ideas with each other.

You should feel free to post your modified search.htm, or links to
related tools or sites here.

Have fun!

Messages 1 - 30 of 29505   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help