Welcome Guest.   Make a donation to an author on the site November 27, 2014, 06:19:19 PM  *

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.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: new FARR Plugin : Delicious - built on the Javascript SDK : FScript  (Read 42822 times)
ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: December 21, 2007, 03:18:36 PM »

Delicious plugin
The delicious plugin allow you to explore your bookmarks stored on the site del.icio.us.

Installation
Download the latest version at http://e.craft.free.fr/fa...r/delicious/delicious.zip and decompress it to farr/plugins/delicious.
Important information : Configure your username and password in the advanced options of the plugin.
If this is the first time you try the plugin, type dpu so that the plugin download the list of posts or dtu to get the list of tags.
The plugin is based on the javascript SDK (FScript.dll ) which may require that you install the Windows Script Control Host which you can get at :
http://www.microsoft.com/...844d81&DisplayLang=en

List of commands
dp : list delicious posts
dpu : list delicious posts and update local copy if necessary
dt : list delicious tags
dtu : list delicious tags and update local copy if necessary
dp and dt are a bit faster since they only work on the local copy of the posts or tags.

FScript : Javascript SDK
The principle of fscript.dll is the following :
Put the dll in a folder next to a file named fscript.js. FARR will call you on onSearchBegin and on onRegexSearchMatch. You can call FARR.emitResult to publish results.

The SDK has finally got a documentation packaged with a sample. You can get the last version at : http://e.craft.free.fr/fa...FScript/FScriptSample.rar

I hope to see a lot of little baby script plugins.

Emmanuel
« Last Edit: January 12, 2008, 04:25:02 PM by ecaradec » Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
mouser
First Author
Administrator
*****
Posts: 33,702



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: December 21, 2007, 03:21:05 PM »

oh my gosh this is a wonderful post  Kiss Kiss  Thmbsup Thmbsup Thmbsup
Logged
jgpaiva
Global Moderator
*****
Posts: 4,711



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: December 21, 2007, 03:52:46 PM »

Am i misunderstanking this, or is this a javascript plugin SDK for farr?

If so... You're a genious, ecaradec cheesy
Logged

ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: December 21, 2007, 05:07:08 PM »

Yes it's a javascript SDK for FARR. It is still a bit limited : only plugins that publish results can be written now. It should  be good enough for many uses.
Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
tinjaw
Supporting Member
**
Posts: 1,926



I'm so glad breakbeat techno isn't an illegal drug

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: December 21, 2007, 07:06:42 PM »

Genius! Pure Genius!
Logged

 
TucknDar
Charter Member
***
Posts: 1,094


Advanced coder of Nowt

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: December 21, 2007, 11:35:11 PM »

Wow! It's really fast, too. I wouldn't have thought that this kinda plugin (retrieve web stuff) could be that fast.

Excellent work, ecaradec thumbs up
Logged
vitalyb
Supporting Member
**
Posts: 141



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #6 on: December 22, 2007, 12:11:52 PM »

 thumbs up That's great! I always wanted Delicious plugin!

And the SDK is even MORE cool.
Logged
rbeeger
Charter Member
***
Posts: 72


View Profile Give some DonationCredits to this forum member
« Reply #7 on: December 22, 2007, 01:05:49 PM »

Hi,

The delicious plugin only checks only the rss feed. So although with a small modification of the script (Just change deliciousurl at the top of it) it can be made to check the feed of a personal delicious account, it will never be able to search all delicious bookmarks of an account.
But anyways, this simple example shows what can be done with the SDK and it should be possible to create a better delicious plugin with it. Thanks to ecaradec for creating it.

Questions: If FScript is based on the Windows Script Control Host, would it be possible to create a version of it that would work with any scripting language that integrates with it (Ruby, Perl, Groovy etc.)?

Cheers,
  Robert
Logged
lanux128
Global Moderator
*****
Posts: 6,133



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: December 23, 2007, 09:51:24 PM »

ecaradec, wow! btw enlighten me, does this mean i can run bookmarklets from Farr?
Logged

ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: December 24, 2007, 04:54:24 AM »

Quote
it will never be able to search all delicious bookmarks of an account
Yes you are right. Only the last links are in the rss feed. The del.icio.us plugin does not allow to search all the archived link. Del.icio.us has an export fonctionnality that I may be able to use, but it is html and I would have to parse it with regex and combine that with the last results from rss.
I really wanted to get fscript out. Del.icio.us plugin was really meant as a sample for it.

Quote
would it be possible to create a version of it that would work with any scripting language that integrates with it (Ruby, Perl, Groovy etc.)?
Yes I could, but I don't know if its a good idea since ruby, perl, etc... are not installed by default with Windows and plugins would require installing another language to run. But its easy to do.

Quote
ecaradec, wow! btw enlighten me, does this mean i can run bookmarklets from Farr?
I'm sorry but fscript its more a JScript SDK. Its a way to write plugins in Javascript. Possibilities are those of shell script. There may be a way to run bookmarklets from farr but it would require to write the plugin for that. FScript is an easier way to write plugins for FARR.

Manu
Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
rbeeger
Charter Member
***
Posts: 72


View Profile Give some DonationCredits to this forum member
« Reply #10 on: December 24, 2007, 09:59:17 AM »

Quote
it will never be able to search all delicious bookmarks of an account
Yes you are right. Only the last links are in the rss feed. The del.icio.us plugin does not allow to search all the archived link. Del.icio.us has an export fonctionnality that I may be able to use, but it is html and I would have to parse it with regex and combine that with the last results from rss.
I really wanted to get fscript out. Del.icio.us plugin was really meant as a sample for it.
I didn't mean to criticize your del.icio.us plugin. I realized that it was only a simple example for your SDK, which is by itself a great thing. And I think that an advanced del.icio.us plugin could be written with JavaScript and FScript. So it's all more praise for FScript than criticism for the del.icio.us example.

BTW: I'd be interested in a real del.icio.us plugin written in JavaScript, C or what ever. So if there are any plugin developers out there looking for new challenges, this would be one Wink

Quote
would it be possible to create a version of it that would work with any scripting language that integrates with it (Ruby, Perl, Groovy etc.)?
Yes I could, but I don't know if its a good idea since ruby, perl, etc... are not installed by default with Windows and plugins would require installing another language to run. But its easy to do.
That's correct. Plugins would be created that would require additional software to be installed. But I don't think that's really a problem. As a user you could choose the language you like for developing plugins. So it would be possible for many more people to write specialized plugins. FARR would become really customizable. I think many  Ruby and Groovy people would try FARR if they could script it with their language of choice.
Developers who want their plugins used by as many users as possible would still choose one of the languages available on a default installation of Windows. Those other potential plugin writers will probably never write a plugin in C, C# or JavaScript.
Logged
ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: December 28, 2007, 01:15:50 PM »

I made a new version of the del.icio.us plugin. It is based on the del.icio.us api and can explore all your posts now.  cheesy.

The plugin connect on your account to download the list of your posts so don't forget to set your login and password at the top of the script.

The plugin now use FARR filtering. I find this much more user friendly than using tags only for searching. Let me know. The syntax has a bit changed. It is now dlc word word word... The first check can be a bit slow (some seconds ) but the results are cached and filtering is fast after that. Tags are prefixed with ':' so if you really want to filter on some tag type :tag.

The FScript plugin has evolved too. I fixed some bugs and the whole should be more usable.

Download links removed : use link in the first message.
« Last Edit: January 01, 2008, 07:32:43 AM by ecaradec » Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
mouser
First Author
Administrator
*****
Posts: 33,702



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: December 28, 2007, 01:21:38 PM »

WOW what a day for FARR plugins, this is wonderful  Kiss Kiss Kiss Kiss Kiss Kiss Kiss Kiss
Logged
nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« Reply #13 on: December 28, 2007, 03:54:26 PM »

wow this is great !  Kiss Kiss

BUT  cheesy

it does not work on my computer...
posts.xml stays empty (0 byte)
i must be missing something really obvious...
Logged
ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #14 on: December 28, 2007, 04:57:57 PM »

Sometimes del.icio.us server refuse to answer to the request to get all posts to protect against abusive uses. Could you :
- try again
- check that your login and password are correct
- try to go to https://api.del.icio.us/v1/posts/all with your browser. It should return an xml document not an html message.

If nothing work try to add FARR.debug(xmlhttp.responseText) before xml.loadXML(xmlhttp.responseText); in doRequest function in fscript.js, type dlc to run the plugin and check the results. If you don't know : do ctrl-c on the dialog then ctrl-v to paste it in a message on the forum or as a private message.
Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
vitalyb
Supporting Member
**
Posts: 141



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #15 on: December 28, 2007, 05:39:57 PM »

There is a problem with Delicious now, it seems: Sorry, Service Temporarily Unavailable.
However, great work! =)

Next it would be great if there was some kind of caching on the disk. Easiest way to implent would be just to save the file locally when the service is up and update it everytime in the background. Or something along those lines.
Logged
vitalyb
Supporting Member
**
Posts: 141



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #16 on: December 28, 2007, 05:41:27 PM »

Oh, you already did it! tellme
That's great! How often does it update?
Logged
nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« Reply #17 on: December 29, 2007, 04:08:42 AM »

i tried again

i works now but i have frequent fatal errors

FARR crashes completely, here are some screenshots :



Logged
ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #18 on: December 29, 2007, 05:03:53 AM »

That's great! How often does it update?
It pool the del.icio.us update api to know when there is a change. It should be up to date all the time. But I think there is some kind of bug in msxml2.httprequest and it sometime get the cache result instead of the current server answer.
Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #19 on: December 29, 2007, 05:08:35 AM »

i tried again
i works now but i have frequent fatal errors
FARR crashes completely, here are some screenshots :
Ohh. I'm sorry. Something seem wrong with fscript. Results are pooled in a vector that is not ready. I will check that.
Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #20 on: December 29, 2007, 09:07:10 AM »

Ok I think the problem is fixed. It was caused by pending requests that completed after the current FARR query ended.
Download links removed : use link in the first message.
« Last Edit: January 01, 2008, 07:33:02 AM by ecaradec » Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
mouser
First Author
Administrator
*****
Posts: 33,702



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #21 on: December 29, 2007, 09:59:28 AM »

i just have to say this is so damned cool that you have created a way to write FARR plugins in javascript.  Beautiful stuff.
works like a charm here.
Logged
nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« Reply #22 on: December 29, 2007, 02:25:14 PM »

wow it works now thanks !  Grin
love this plugin...

now my biggest wish is that someone makes a sdk for autohotkey !!
Logged
rbeeger
Charter Member
***
Posts: 72


View Profile Give some DonationCredits to this forum member
« Reply #23 on: December 30, 2007, 10:48:31 AM »

The delicious plugin is now really perfect, awesome etc. Thanks for making it.
It's a lot faster than using the Firefox "Delicious bookmarks" extension for looking up bookmarks.

One concern I have is that the password has to be inserted as unencrypted text.
It would be cool if the plugin could ask for a username and password at the first time of invocation and use the cookie provided by del.icio.us afterwards. Hmm, if it is impossible to open some input dialog from a FScript dialog, it could read in a file and delete it after acquiring the cookie.
Logged
rbeeger
Charter Member
***
Posts: 72


View Profile Give some DonationCredits to this forum member
« Reply #24 on: December 30, 2007, 11:20:10 AM »

Somehow the delicious plugin always opens a selected bookmark twice. When no Firefox is running, two Firefox windows are opened with the same URL. When there already is a Firefox instance running, two tabs are opened with the same URL.
Logged
Pages: [1] 2 3 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.053s | Server load: 0.04 ]