Latest posts of: phitsc - DonationCoder.com
HOME | Blog | Software | Reviews and Features | Forum | Help | Donate
Click here to
donate and join now!
Welcome Guest.   Make a donation to an author on the site April 01, 2015, 08:14:05 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: Prev 1 ... 27 28 29 30 31 [32] 33 34 35 36 37 ... 42 Next
776  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 30, 2009, 08:47:14 AM
the msdn ones dont trigger a search for me.. i think you may have to add http:// to the urls.
Might this be a FARR Windows 7 specific problem? MSDN launches fine for me when I run FARR on Windows XP. Also, when debugging on Windows 7, the plugin's EFuncName_Allow_ProcessTrigger never seems to get called. No idea why amazon launches though.
777  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 30, 2009, 07:21:02 AM
working well.. very cool!

the msdn ones dont trigger a search for me.. i think you may have to add http:// to the urls.
I intentionally don't add the http:// to the urls (actually, I removed it cheesy), because otherwise FARR will not show the 'group' field (which I'm using to display additional information), but the url instead. Then, when an item is launched I add it again before launching. You're right though, MSDN doesn't work for me any more either. What I'll do now is change the launch code to use FARR's launch command instead of calling ShellExecuteEx myself. Will that use FARR's internal launch 'logic' (like external tools ewemoa is using) and the different launch methods FARR supports?

Thanks guys for checking it out!  smiley
778  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 29, 2009, 03:36:09 PM
I've uploaded a preliminary release for anyone interested to try out. The download link is in the first post. Just download and unzip into the FARR plugins directory, then restart FARR (or goreload). The alias is wms.

A few things to note:

  • I've concentrated on the plugin functionality, so the searches themselves are not very sophisticated and numerous yet. For one thing, it would most certainly be possible to extract more relevant information. But more importantly, they probably won't give you the exact same results as the search on the actual web site would.
  • Most search icons are from google image search, so I'm most certainly not allowed to distribute them with the plugin. Don't know what to do about these yet.
  • There's no documentation about how to configure the searches yet. If you want to try configuring your own search (which I urge everyone to do Thmbsup), just check out the ones included. They are in the searches subdirectory.
  • Each time you modify a search configuration file, you need to reload the plugin (goreload)
  • There's no proper logging / debugging capability yet. If your search doesn't show after 'goreload', run DebugView while you're reloading the plugin. The regular expressions are checked for validity when the plugin is being loaded and invalid searches are (currently silently) discarded.
  • I've found this site quite useful for coming up with regular expressions. If someone knows something better please let me know.
  • The searches included are:
    • Amazon US (this search shows how to configure search options)
    • Amazon DE (because that's where I usually shop. Well, used to, before I bought a Kindle Wink)
    • CDDB
    • C++ Reference
    • IMDB (proofed difficult to split up using regular expressions)
    • MSDN (which is why I actually wanted to code the plugin smiley)
    • Tages Anzeiger Front Seite (which shows how use the plugin to show a news feed)
779  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 24, 2009, 03:10:44 AM
I've implemented the possibility to specify search options. Adding either one of +, / or - right after the search name (and before the search term) will list the available options:

[attachthumb=1]

Using it will give you this:

[attachthumb=2]

Options are specified like so:


description=Amazon
searchUrl=http://www.amazon.com/s/ref=nb_ss?url=search-alias%3Daps&field-keywords=
resultPattern=<div class="productImage"><a href=".*">\s*<img[\w\s="\('\)\{\};]*src="(.*)"[\w\s="/]*>\s*</a></div>\s*<div class="productData">\s*<div class="productTitle"><a href="(.*)">(.*)</a>\s*(?:[<\w\s=">]*)(?:[\w\s]*)(?:by\s|\s~\s)(?:<a href=".*">)?([\w\s,]*)(?:</a>)?</span><span class="binding">\s*\((?:<span class="format">.*</span>)?(.*)\)</span></div>(?:\s*<div class="newPrice"><a href=".*">Buy new</a>:&nbsp;(?:<strike>\$[\d\.]*</strike>\s*)?<span>\$([\d\.]*)</span></div>)?
farrCaption=$3
farrGroup=$4 ($5)  Prize: $$6
farrPath=$2

[books]
searchUrl=http://www.amazon.com/s/ref=nb_ss?url=search-alias%3Dstripbooks&field-keywords=

[kindlebooks]
searchUrl=http://www.amazon.com/s/ref=nb_ss?url=node%3D154606011&field-keywords=
resultPattern=<div class="productImage"><a href=".*">\s*<img[\w\s="\('\)\{\};]*src="(.*)"[\w\s="/]*>\s*</a></div>\s*<div class="productData">\s*<div class="productTitle"><a href="(.*)">(.*)</a>\s*(?:[<\w\s=">]*)(?:[\w\s]*)(?:by\s|\s~\s)(?:<a href=".*">)?([\w\s,]*)(?:</a>)?</span><span class="binding">\s*\(<span class="format">(.*)</span>(.*)\)</span> - <span class="format">.*</span></div>(?:\s*<div class="newPrice"><a href=".*">Buy</a>:&nbsp;(?:<strike>\$[\d\.]*</strike>\s*)?<span>\$([\d\.]*)</span></div>)?
farrGroup=$4 ($5 - $6)  Prize: $$7

780  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 24, 2009, 03:02:03 AM
I've recorded a short teaser screen cast.

 Kiss

This link would be good in your first post: it's great!!

Done. Thanks for the suggestion!
781  Other Software / Developer's Corner / Re: “Is PayPal good for your microISV business?” A short PayPal horror story on: December 23, 2009, 09:26:23 AM
Kafka - The trial, for anyone who hasn't read it yet. Very frightening when it actually happens in the real world.
782  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 23, 2009, 08:19:15 AM
just realised FarrWebMetaSearch could be (mis)used to read news feeds. because they are xml they are actually simpler to split up with regular expressions than 'normal' web pages.

here's an example:


description=Tages Anzeiger Front
searchUrl=http://www.tagesanzeiger.ch/rss.html?
resultPattern=<item>\s*<id>\d*</id>\s*<title>(.*)</title>\s*<description><!\[CDATA\[(.*)\]\]></description>\s*<category>.*</category>\s*<link>(.*)</link>\s*<guid.*</guid>\s*<pubDate>(.*)</pubDate>\s*</item>
farrCaption=$1 ($4)
farrGroup=$2
farrPath=$3


will give you this:

[attachthumb=1]
783  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 21, 2009, 02:14:28 PM
I've recorded a short teaser screen cast.
784  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 17, 2009, 02:10:51 PM
I've changed the configuration files from xml to ini-style (see implementation notes in first post). Makes it much easier to handle the (already complex) regular expressions, as you don't have to encode < and > etc.. And then xml would be overkill for this anyway.

Capturing IMDB's output turned out to be a hard nut to crack. I'm afraid I can't offer anything satisfactory.
785  Special User Sections / N.A.N.Y. 2010 / Request for Assistance on: December 17, 2009, 05:00:38 AM
I'm looking for assistance with my FarrWebMetaSearch FARR plugin. The plugin can show search results from a web page whereby the results are extracted with a regular expression. So I'm looking for people who are either fluent with regular expressions or are more patient than I am Wink If you're interested please PM me so I can send you a preliminary version of the plugin and some instructions.
786  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 16, 2009, 02:49:33 AM
Amazon will be next on my list. I've ordered myself a Kindle for Christmas cheesy
787  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 15, 2009, 03:27:21 PM
I've implemented the most important features now, especially asynchronious searching. I'm going to try and add some more searches now with focus on stability. I'm going to start with IMDB then.
788  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 14, 2009, 02:42:54 AM
it doesnt show results live as we type does it?
It's meant to. But fetching something from the web obviously takes time. So currently the plugin is best suited to touch typists Wink
789  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 13, 2009, 04:52:18 PM
updated implementation notes and added a todo list
790  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 Teaser: FarrWebMetaSearch on: December 13, 2009, 03:45:43 PM
I've added some screen shots.
791  Special User Sections / N.A.N.Y. 2010 / NANY 2010 Final Release: FarrWebMetaSearch on: December 11, 2009, 09:51:25 AM
NANY 2010 Entry Information

Application Name FarrWebMetaSearch
Version 0.9.1
Short Description A FARR plugin used to query results from a web page and display them in list form.
Supported OSes MS Windows
Web Page http://farrwms.objecttechnology.com
Download Link download
System Requirements
Version History
  • 0.9.1 - preliminary - use FARR's launching functionality to open URLs
  • 0.9.0 - preliminary - first release
Author phitsc
Credits Thanks to hamradio for designing the plugin icon!
Screencast http://donationcoder.com/...search/webmetasearch.html
YouTube: http://www.youtube.com/watch?v=pxKcvQ-uHjQ


Description
FarrWebMetaSearch is another generic web retrieval FARR plugin. Unlike ewemoas Webgrab this plugin will show results in list mode. It is therefore targeted at web sites delivering list-like results.

Configuration and usage of the plugin will be as follows:
  • searches are configured via a text configuration file, one for each 'search'. the file will specify search url and a regular expression to capture the result.
  • search terms will be specified through the FARR input box

See implementation notes further down for further clarification.

Features
It just does what it says in the description.

Planned Features
  • Fix icon copyright problem
  • Fix launching problem
  • Add proper help file
  • Add a way for users to contribute / get searches
  • Add logging/notification in case a configuration files is invalid
  • Improve usage for news feeds
  • Make original search string available as a variable
  • Add many more searches cheesy
  • Either make plugin asynchronious or implement some way to delay searching
  • Add a description for each search to xml files and FARR searches list
  • Implement filtering of searches
  • Implement auto-completion of searches with Enter key (well, maybe)
  • Add a way to specify search options (for web sites that support it)
  • Make parsing of searches files more robust

Screencast
<a href="http://www.youtube.com/watch?v=pxKcvQ-uHjQ" target="_blank">http://www.youtube.com/watch?v=pxKcvQ-uHjQ</a>

Screenshots

FarrWebMetaSearch Web Site
MSDN[attachthumb=1][attachthumb=2]
CDDB[attachthumb=3][attachthumb=4]

and a teaser screencast.

Implementation Notes

FarrWebMetaSearch reads all configuration files in its searches subdirectory when it's being loaded. When the plugin alias (currently wms) is entered, it will list all configured searches. To use a search one would then enter, e.g.:

wms msdn PathAppend

to find MSDN entries for the PathAppend API function.

Search files currently look like this (this is the cddb.conf file):

description=Microsoft Developer Network
searchUrl=http://social.msdn.microsoft.com/Search/en-GB?query=
resultPattern=<a onmousedown=\".*\" href=\".*\">(.*)</a>\r\n<br/>\r\n<div class=\"ResultDescription\">(.*)</div>\r\n<div class=\"ResultUrl\">(.*)</div>
farrCaption=$1
farrGroup=$2
farrPath=$3

The regex sub-expressions can (should, actually) be used to form the results.
792  Special User Sections / N.A.N.Y. 2010 / Re: NANY 2010 - Pledge to Participate Here on: December 09, 2009, 02:00:10 PM
I'll try to make a simple FARR plugin. I hope I'll find the time. I hope I'll find the motivation. I hope what I have in mind will actually work cheesy
793  DonationCoder.com Software / FARR Plugins and Aliases / Re: FScript 1.9: querynokeyword problem on: December 09, 2009, 02:24:16 AM
I'm afraid it's what you currently have to expect. See here:

http://www.donationcoder....11804.msg136530#msg136530

Seems like mouser didn't address this issue yet. Most certainly because he's not aware of it Wink
794  Main Area and Open Discussion / Living Room / Re: Geek gadgets - Calculators... on: November 20, 2009, 02:15:14 AM
I also have a 48gx now - awesome grapher but SLOW!
Indeed! The time I bought it, that was about 1993, that was a Killer Machine though.
795  Other Software / Developer's Corner / Re: Learning Windows Script Host on: November 03, 2009, 03:21:12 AM
Ok.. thanks...  uhhh.. what are FARR plugins for huh

They extend Mouser's FindAndRunRobot program by further functionality. There's even a wish list, if you need ideas.
796  Other Software / Developer's Corner / Re: Learning Windows Script Host on: November 03, 2009, 03:09:24 AM
Yes, you should definitely read the book. Then you'll be able to make us some nice FARR plugins Wink

http://www.donationcoder....m/index.php?topic=12232.0
797  DonationCoder.com Software / FARR Plugins and Aliases / Re: FARR plugin: FARR Remember The Milk 1.1.0 on: October 11, 2009, 05:21:55 PM
Sorry for the lack of response. If you're willing to help I'll make you a special release with some debug code sometime next week.

Sure. What do you mean by "help"?

It just means you're willing to take the time to install the special debug version, run it, capture the debug output with a special tool and send that output to me by PM or email for analysis.
798  DonationCoder.com Software / FARR Plugins and Aliases / Re: FARR plugin: FARR Remember The Milk 1.1.0 on: October 09, 2009, 03:36:02 AM
I don't see incomplete tasks due before tomorrow in FarrMilk. Anyone else have this problem?
Arithmomaniac
Indeed.

I'm afraid now that I had a quick look at it in the debugger, I can't reproduce it any more Sad

How about now? It's still a problem for me...
Arithmomaniac

Sorry for the lack of response. If you're willing to help I'll make you a special release with some debug code sometime next week.
799  DonationCoder.com Software / FARR Plugins and Aliases / Re: idea: FARR plugin school / tutorial / wiki on: October 01, 2009, 09:34:03 AM
phitsc you have been promoted.

Hey, I think that's the first time I hear this in my entire career! Wink
800  DonationCoder.com Software / FARR Plugins and Aliases / Re: idea: FARR plugin school / tutorial / wiki on: October 01, 2009, 08:10:18 AM
Sorry for the stupid question: is signing up supposed to be enough for actually being able to edit pages in the wiki?
Pages: Prev 1 ... 27 28 29 30 31 [32] 33 34 35 36 37 ... 42 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.051s | Server load: 0.1 ]


Share on Facebook
submit to reddit