Thanks John. Now I have the complete package.

I had debated about asking my nit-picking question, but now I'm glad I did!
Time to put all that information to good use.

Best regards,

-John


On Thu, Sep 5, 2013 at 5:58 PM, John Benediktsson <mrj...@gmail.com> wrote:

> On Thu, Sep 5, 2013 at 1:57 PM, John Porubek <jporu...@gmail.com> wrote:
>
>> Persistence pays off!
>>
>
> Hah, sorry I was traveling the last two weeks or so!
>
>
>> Thank you John for the elegant, straightforward and surprisingly short
>> solution to my request. If anyone else tries to run this in Factor 0.96,
>> "http-get" is in the *http.client* vocabulary and "json>" is in *
>> json.reader* (neither was suggested by the listener). Also, I correctly
>> guessed that the "foreground" that was needed was in the 
>> *ui.render*vocabulary (the listener gave two choices).
>>
>
> No problem!
>
> I think foreground from *io.styles* is the right one.
>
> Also, I've pushed it to my GitHub if you want to check and make sure your
> USING is the same as mine:
>
>
> https://github.com/mrjbq7/re-factor/blob/master/re-factor/re-factor.factor
>
>
>> This tool works great, giving me a nice list of posts. However, your
>> statement "URLs that can be right-clicked and opened in your browser" makes
>> me wonder if I'm missing something. At least in Windows, if I right-click
>> on a post, the listener pops up a little window with:  "Inspector, a
>> delineating line, then Prettyprint, Push, Unparse and Watch". From any of
>> these I can see something like *URL" http://re-factor.blogspot.com/..."*and 
>> I can easily extract something I can paste in my browser address line,
>> but nothing that opens directly in my browser. I'm certainly not
>> complaining - I'm very happy with my new tool - just curious.
>>
>
> Try to USE: webbrowser in the listener.  A side effect of doing that is it
> adds an "Open Url" option when you right-click to URLs.  I blogged about it
> here:
>
>      http://re-factor.blogspot.com/2011/01/open-url.html
>
> And how it integrates with the listener here:
>
>     http://re-factor.blogspot.com/2011/05/open-url-in-listener.html
>
> Also, if you want some extra credit stuff, if you inspect the JSON object
> returned you'll see it actually contains all the content of the posts as
> well.  Unfortunately it's HTML, but you could print it out without the tags:
>
>     USING: html.parser html.parser.printer ;
>
>     all-posts first { "content" "$t" } [ of ] each parse-html html-text.
>
> It's a little messy, so probably our "text-printer" could be improved to
> add some more new-lines when appropriate, but you get the idea.
>
> Best,
> John.
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to