Re: [DQSD-Users] "mwd /p" stopped working
Here's a temporary fix. It doesn't resolve everything, but the basic functionality is back. It looks like it's both a change to remove the "/cgi-bin" portion of the path for word entries, but also a new bug in their code that wraps the actual entries (by introduction of a few random characters before "entry misc" in the class wrapper). -Shawn > -Original Message- > From: Kim Gräsman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 24, 2008 8:38 AM > To: DQSD users mailing list > Subject: Re: [DQSD-Users] "mwd /p" stopped working > > Hi David, > > Yeah, mine's broken too. And the popup appears to be working on my XP > box, I get a " not found" message in a popup. > > I'll see if I can find some time to look into it... > > Thanks, > - Kim > > On Wed, Sep 24, 2008 at 17:12, David Blume > <[EMAIL PROTECTED]> wrote: > > I'm pretty sure that this is due to a change over at > Merriam Websters. > > Their cgi-bin link just doesn't work anymore. > > > > I've already dirtied my own sandbox's mwd.xml. But I don't > think the regular > > "mwd" search worked anymore either. Somebody with a clean sandbox > > could try it out by typing, > > > > mwd > > > > in the DQSD. The popups haven't been a problem. I've had this > > working for years. > > > > Environments: > > > > launchmode=1; (On two computers. Default browser is > Mozilla Firefox > > 3.0.1. on each.) > > OS: Windows XP (on one computer), Windows Vista (on another) > > > > --David > > > > On Wed, Sep 24, 2008 at 1:53 AM, Kim Gräsman > <[EMAIL PROTECTED]> wrote: > >> Hi David, > >> > >> Does the regular mwd search work? > >> > >> After all the security enhancements to IE, popups have been hard to > >> get working properly -- are you still on Windows XP, or Vista? > >> > >> Thanks, > >> - Kim > >> > >> On Tue, Sep 23, 2008 at 23:33, David Blume > <[EMAIL PROTECTED]> wrote: > >>> My favorite feature of DQSD is my alias of the ":" > terminator to "mwd > >>> /p" to cause definitions to appears in a popup window. > >>> (Here's a link that shows the alias: > http://dblume.livejournal.com/65402.html ) > >>> > >>> It looks like Merriam Websters has changed their cgi-bin > >>> implementation, because "mwd /p" doesn't work anymore. > >>> > >>> Maybe the fix is simply to remove "cgi-bin/" from the > URL, but this > >>> isn't something I can easily test until I get some free > time at home. > >> > > -- > --- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK & > win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > To unsubscribe visit: > https://lists.sourceforge.net/lists/listinfo/dqsd-users > DQSD-Users@lists.sourceforge.net > http://sourceforge.net/mailarchive/forum.php?forum_id=8601 > Merriam-Webster Dictionary Search for word definitions. Switches: /popup - Display in popup window instead of regular browser window Examples: mwd idempotent mwd /p idempotent ReferenceLanguage http://www.merriam-webster.com/ http://www.merriam-webster.com/dictionary"; method="post"> <![CDATA[ function mwd(q) { var args = parseArgs(q, "popup"); if ( typeof mwdDisplayInPopup == "undefined" ) mwdDisplayInPopup = 0; if ( (args.switches.length > 0) || (mwdDisplayInPopup != 0) ) { mwdx(args.q) // Display in popup window } else { if( nullArgs("mwd",q) ) return false; document.mwdf.va.value = args.q; submitForm(mwdf); // Display in regular browser window } } function mwdx(q) { var extraArgDelim = '\1'; var listOption = false; var p = q.search( extraArgDelim ); if ( p >= 0 ) { postArgs = unescape( q.substr( p + 1 ) ); listOption = true; q = q.substr( 0, p ); } try { var xmlHttp = new ActiveXObject("Micr
Re: [DQSD-Users] "mwd /p" stopped working
Hi David, Yeah, mine's broken too. And the popup appears to be working on my XP box, I get a " not found" message in a popup. I'll see if I can find some time to look into it... Thanks, - Kim On Wed, Sep 24, 2008 at 17:12, David Blume <[EMAIL PROTECTED]> wrote: > I'm pretty sure that this is due to a change over at Merriam Websters. > Their cgi-bin link just doesn't work anymore. > > I've already dirtied my own sandbox's mwd.xml. But I don't think the regular > "mwd" search worked anymore either. Somebody with a clean sandbox > could try it out by typing, > > mwd > > in the DQSD. The popups haven't been a problem. I've had this > working for years. > > Environments: > > launchmode=1; (On two computers. Default browser is Mozilla Firefox > 3.0.1. on each.) > OS: Windows XP (on one computer), Windows Vista (on another) > > --David > > On Wed, Sep 24, 2008 at 1:53 AM, Kim Gräsman <[EMAIL PROTECTED]> wrote: >> Hi David, >> >> Does the regular mwd search work? >> >> After all the security enhancements to IE, popups have been hard to >> get working properly -- are you still on Windows XP, or Vista? >> >> Thanks, >> - Kim >> >> On Tue, Sep 23, 2008 at 23:33, David Blume <[EMAIL PROTECTED]> wrote: >>> My favorite feature of DQSD is my alias of the ":" terminator to "mwd >>> /p" to cause definitions to appears in a popup window. >>> (Here's a link that shows the alias: >>> http://dblume.livejournal.com/65402.html ) >>> >>> It looks like Merriam Websters has changed their cgi-bin >>> implementation, because "mwd /p" doesn't work anymore. >>> >>> Maybe the fix is simply to remove "cgi-bin/" from the URL, but this >>> isn't something I can easily test until I get some free time at home. >> - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users DQSD-Users@lists.sourceforge.net http://sourceforge.net/mailarchive/forum.php?forum_id=8601
Re: [DQSD-Users] "mwd /p" stopped working
I'm pretty sure that this is due to a change over at Merriam Websters. Their cgi-bin link just doesn't work anymore. I've already dirtied my own sandbox's mwd.xml. But I don't think the regular "mwd" search worked anymore either. Somebody with a clean sandbox could try it out by typing, mwd in the DQSD. The popups haven't been a problem. I've had this working for years. Environments: launchmode=1; (On two computers. Default browser is Mozilla Firefox 3.0.1. on each.) OS: Windows XP (on one computer), Windows Vista (on another) --David On Wed, Sep 24, 2008 at 1:53 AM, Kim Gräsman <[EMAIL PROTECTED]> wrote: > Hi David, > > Does the regular mwd search work? > > After all the security enhancements to IE, popups have been hard to > get working properly -- are you still on Windows XP, or Vista? > > Thanks, > - Kim > > On Tue, Sep 23, 2008 at 23:33, David Blume <[EMAIL PROTECTED]> wrote: >> My favorite feature of DQSD is my alias of the ":" terminator to "mwd >> /p" to cause definitions to appears in a popup window. >> (Here's a link that shows the alias: >> http://dblume.livejournal.com/65402.html ) >> >> It looks like Merriam Websters has changed their cgi-bin >> implementation, because "mwd /p" doesn't work anymore. >> >> Maybe the fix is simply to remove "cgi-bin/" from the URL, but this >> isn't something I can easily test until I get some free time at home. > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > To unsubscribe visit: > https://lists.sourceforge.net/lists/listinfo/dqsd-users > DQSD-Users@lists.sourceforge.net > http://sourceforge.net/mailarchive/forum.php?forum_id=8601 > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users DQSD-Users@lists.sourceforge.net http://sourceforge.net/mailarchive/forum.php?forum_id=8601
Re: [DQSD-Users] "mwd /p" stopped working
Hi David, Does the regular mwd search work? After all the security enhancements to IE, popups have been hard to get working properly -- are you still on Windows XP, or Vista? Thanks, - Kim On Tue, Sep 23, 2008 at 23:33, David Blume <[EMAIL PROTECTED]> wrote: > My favorite feature of DQSD is my alias of the ":" terminator to "mwd > /p" to cause definitions to appears in a popup window. > (Here's a link that shows the alias: http://dblume.livejournal.com/65402.html > ) > > It looks like Merriam Websters has changed their cgi-bin > implementation, because "mwd /p" doesn't work anymore. > > Maybe the fix is simply to remove "cgi-bin/" from the URL, but this > isn't something I can easily test until I get some free time at home. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users DQSD-Users@lists.sourceforge.net http://sourceforge.net/mailarchive/forum.php?forum_id=8601
[DQSD-Users] "mwd /p" stopped working
My favorite feature of DQSD is my alias of the ":" terminator to "mwd /p" to cause definitions to appears in a popup window. (Here's a link that shows the alias: http://dblume.livejournal.com/65402.html ) It looks like Merriam Websters has changed their cgi-bin implementation, because "mwd /p" doesn't work anymore. Maybe the fix is simply to remove "cgi-bin/" from the URL, but this isn't something I can easily test until I get some free time at home. --David - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users DQSD-Users@lists.sourceforge.net http://sourceforge.net/mailarchive/forum.php?forum_id=8601
Re: [DQSD-Users] mwd /p stopped working?
Sorry, Everybody, My last reply to Shawn was premature. Shawn's "mwd /popup" fix is a fine interim fix. The fact that the list of spelling suggestions didn't include correct links is not a new problem. What's more important is that support for multiple entries for a word is broken. (Eg., "mwd /popup register" vs. "mwd register") mwd.xml needs some TLC. I don't actually know any javascript, but I'm willing to give it a look when I free up in a couple of weeks. --David On 10/13/07, Shawn K. Hall <[EMAIL PROTECTED]> wrote: > > > > Anybody else notice that searching m-w.com with "mwd /p %s" > > (popup) stopped working correctly today? Please let me know > > if there's a fix to mwd.xml I can use. > > I've attached a fixed version. I don't actually use this search, so let > me know if it's insufficient. > > -Shawn > > > > - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users DQSD-Users@lists.sourceforge.net http://sourceforge.net/mailarchive/forum.php?forum_id=8601
Re: [DQSD-Users] mwd /p stopped working?
Wow! Thanks so much for the quick reply. It works well, with a minor exception. (It doesn't handle misspellings correctly. Links in the popup are not links in that case.) For example, try "mwd /p missspell" Still, I'm delighted to have the popup back. It's a feature I love so much I once blogged about it. There's an image of the old popup window there, too: http://dblume.livejournal.com/65402.html Thanks again, --David BTW, I now see that the version of mwd.xml I had was On 10/13/07, Shawn K. Hall <[EMAIL PROTECTED]> wrote: > > Hi David, > > > Anybody else notice that searching m-w.com with "mwd /p %s" > > (popup) stopped working correctly today? Please let me know > > if there's a fix to mwd.xml I can use. > > I've attached a fixed version. I don't actually use this search, so let > me know if it's insufficient. > > -Shawn > > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ___ > To unsubscribe visit: > https://lists.sourceforge.net/lists/listinfo/dqsd-users > DQSD-Users@lists.sourceforge.net > http://sourceforge.net/mailarchive/forum.php?forum_id=8601 > > > - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users DQSD-Users@lists.sourceforge.net http://sourceforge.net/mailarchive/forum.php?forum_id=8601
Re: [DQSD-Users] mwd /p stopped working?
Hi David, > Anybody else notice that searching m-w.com with "mwd /p %s" > (popup) stopped working correctly today? Please let me know > if there's a fix to mwd.xml I can use. I've attached a fixed version. I don't actually use this search, so let me know if it's insufficient. -Shawn Merriam-Webster Dictionary Search for word definitions. Switches: /popup - Display in popup window instead of regular browser window Examples: mwd idempotent mwd /p idempotent ReferenceLanguage http://www.m-w.com/ http://www.m-w.com/cgi-bin/dictionary"; method="post"> 0) || (mwdDisplayInPopup != 0) ) { mwdx(args.q) // Display in popup window } else { if( nullArgs("mwd",q) ) return false; document.mwdf.va.value = args.q; submitForm(mwdf); // Display in regular browser window } } function mwdx(q) { var extraArgDelim = '\1'; var listOption = false; var p = q.search( extraArgDelim ); if ( p >= 0 ) { postArgs = unescape( q.substr( p + 1 ) ); listOption = true; q = q.substr( 0, p ); } try { var xmlHttp = new ActiveXObject("Microsoft.XmlHttp"); if ( listOption ) { xmlHttp.open("POST", "http://www.m-w.com/cgi-bin/dictionary";, false); xmlHttp.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" ); xmlHttp.send( postArgs ); } else { xmlHttp.open("GET", "http://www.m-w.com/dictionary/"; + q, false); xmlHttp.send(); } } catch ( e ) { alert( e.description ); return; } if ( q == '' ) { if ( typeof dictPopup != 'undefined' && dictPopup_ring.length > 0 ) { if ( --dictPopup_sp < 0 ) dictPopup_sp = dictPopup_ring.length - 1; var prev = dictPopup_ring[ dictPopup_sp ]; dictPopup.document.body.innerHTML = prev.html; dictPopup.show(prev.x, prev.y, prev.width, prev.height, dictPopup.document.body); } else { nullArgs("mwd",q) } return; } var windowW = 500; var sBody = xmlHttp.responseText.replace( /[\r\n]/gi, "" ); var re = /((.+)<\/div><\/div>)/mig; var results = re.exec( sBody ); if ( results != null ) { var optionHtml = ''; var entriesFound = parseInt( results[ 2 ], 10 ); if ( isNaN( entriesFound ) ) entriesFound = 1; var html = results[ 1 ].replace( /(src="\/)/gi, "src=\"http://www.m-w.com/"; ).replace( /(href="\/)/gi, "href=\"http://www.m-w.com/"; ); var html = html.replace( //gi, "
"); var html = html.replace( //gi, "
"); var html = html.replace( /javascript\:popWin\(\'/gi, "http://www.m-w.com/";); var html = html.replace( /\'\)"\sclass="audio"/gi, "\""); if ( entriesFound == 1 ) html = html.replace( /(Main Entry:)/, '
$1' ); else { html = html.replace( /(Main Entry:)/, '
$1' ); var options = /(/.exec( html ); if ( options != null ) { var allFormVars = html.replace( /.* ' ); optionHtml += ' '; for ( var i = 0; i < options.length; i++ ) if ( options[ i ] != "" ) { var words = /([^[]+)(.*)/.exec( options[ i ] ); var formVars = 'hdwd=' + options[ i ] + '&' + allFormVars; optionHtml += '
'; } html = html.replace( /(To select an entry, click on it\..*)- ' + options[ i ] + '
'; } optionHtml += '
[DQSD-Users] mwd /p stopped working?
Anybody else notice that searching m-w.com with "mwd /p %s" (popup) stopped working correctly today? Please let me know if there's a fix to mwd.xml I can use. Thanks! --David BTW, I think that aliases.txt should contain ":|mwd /p %s" by default. The ":" suffix is my favorite search. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users DQSD-Users@lists.sourceforge.net http://sourceforge.net/mailarchive/forum.php?forum_id=8601