http://www.bloglines.com/{ifnotempty %s -then sub/%s[no url encoding]}
(I tried with the [no url encoding] outside the {} as well).
However, all I get when trying to test it with an argument is the
following page:
http://www.bloglines.com/sub%2Fwired.com
which doesn't exist.
If I rewrite it manually to http://www.bloglines.com/sub/wired.com
it works as intended.
Why does the command insist on rewriting / to %2f, even though I asked
it not to?
Stian
One of us needs to investigate this matter more thoroughly (I shall stick in
on my todo list if no-one else gets to it first).
--
Jon Aquino (Victoria BC Canada)
http://jonathanaquino.com
[no url encoding] was removed from the "ifthen" command to fix a
different problem. ifNotEmpty is based on the ifthen command, and I
think the change may have affected ifNotEmpty.
Perhaps the ifNotEmpty command could use [no url encoding]?
Try your command with the ifThen:
http://www.bloglines.com/{ifthen -value1 %s -value2 -test NOTEQUAL
-then sub/%s} [no url encoding]
Brian
If anybody has any ideas for a fix, please let me know.
Hi Stian - Actually it's working for me - try this:http://www.bloglines.com/{test200604012039 %s -then sub/%s[no url encoding]}-----Original Message-----Hi Jon,
From: Stian Haklev [mailto:sha...@gmail.com]
Sent: Saturday, April 01, 2006 9:22 PM
To: Jonathan Aquino
Subject: Re: rewriting bl, but it insists on transforming characters
it doesn't work without that command either, it insists on transforming / to %2f...
Stian
http://houshuang.org/blog - Random Stuff that Matters
So now Stian your original implementation will work.
Thanks Allen for investigating.
Go back to bed and see what else you can come up with!
Currently "bl" goes to http://www.bloglines.com/myblogs instead of
http://www.bloglines.com/ , so if bl gets changed to add the bl2
functionality, I'd like to see
an else switch to go to myblogs:
http://www.bloglines.com/{ifthen -value1 %s -value2 -test NOTEQUAL
-then
sub/%s -else myblogs}
Brian
--
Jon Aquino (Victoria BC Canada)
http://jonathanaquino.com
-----Original Message-----
From: Yub...@googlegroups.com [mailto:Yub...@googlegroups.com] On Behalf Of
clear=all>
--
Stian Haklev - University of Toronto
http://houshuang.org/blog - Random Stuff that Matters
I think that this command might be a real hit. :)
Using eop, the bloglines command could have been written like so:
http://www.bloglines.com/{eop sub/@%s@}
Basically it checks a string for the value between two tokens (in this
case the value is %s) and returns nothing if the value is empty and
returns the full string (minus tokens) if the value is not empty.
Jon
-----Original Message-----
From: Yub...@googlegroups.com [mailto:Yub...@googlegroups.com] On Behalf Of
Allen Ormond
Sent: Sunday, April 02, 2006 9:50 AM
To: YubNub
Subject: Re: rewriting bl, but it insists on transforming characters
Instead of:
http://www.bloglines.com/{ifthen -value1 %s -value2 -test NOTEQUAL
-then sub/%s -else myblogs}
The bloglines command could be written:
http://www.bloglines.com/{eop2 sub/@%s@ -else myblogs}
Perhaps eop could be deleted as eop2 is better.
Also, I just noticed that the first two examples on the man page are
flip-flopped. The first returns nothing, the second returns "I like
monkeys". I think I need some caffeine.
Jon
-----Original Message-----
From: Yub...@googlegroups.com [mailto:Yub...@googlegroups.com] On Behalf Of
Allen Ormond
Sent: Sunday, April 02, 2006 10:16 AM
To: YubNub
Subject: Re: rewriting bl, but it insists on transforming characters
However, I just created gma2 (as usual, proposed as replacement for
gma), which opens GMail, or searches it. SO much easier than using
ifthen! Thanks a lot.
Stian
Jon
-----Original Message-----
From: Yub...@googlegroups.com [mailto:Yub...@googlegroups.com] On Behalf Of
sha...@gmail.com
Sent: Sunday, April 02, 2006 4:27 PM
To: YubNub
Subject: Re: rewriting bl, but it insists on transforming characters