Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ntb-clips · The NoteTab Clips List

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 14371 - 14400 of 23787   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#14371 From: "rpdooling" <rpdooling@...>
Date: Tue Nov 1, 2005 7:44 pm
Subject: Re: Daily Word Count Clips
rpdooling
Send Email Send Email
 
Please Disregard the first clunky batch of WordCount clips.

I have made four new clips and will upload them in the files section
in about a week after I thoroughly test them.

Any other writers/NoteTabbers who want to beta test them can email me.
Here's a description of what I'm making from the ^!Info file.

WordCount Version 1.1

Writers, especially novelists, often obsess about their production
numbers. These four clips help keep track of how many words you are
writing per day. The clips assume that the novel (or other large
project) is contained in a single NoteTab file (outline or text).
However you can track as many different files as you please.

There are four clips in this WordCount group.

(1) Start Counting Words - Saves the date and the current number of
words for the given document to the NotePro.ini file and sends you on
your way with an inspirational message;

(2) Check Your Progress - Checks to make sure that you ran the first
clip and then tallies your progress by subtracting: (1) the number of
words you started with, from (2) the total number of words in the
current document. If you have created 2000 new words, you get a
reward; if not, you get appropriate encouragement or punishment.

(3) Record Your Progress - You should run this clip only after a day's
hard work and just before quitting. It tallies the total number of
words you created that day and enters them on the last line of the
file along with today's date.

(4) Record Date & WordCount - This clip doesn't require values created
by the other clips. It simply inserts the date, time, and current
total word count on a single line at the end of the file in the
following format:
{Date -> WordCount: #####}.

Happy Writing!

rpdooling
http://dooling.com

--- In ntb-clips@yahoogroups.com, "rpdooling" <rpdooling@y...> wrote:
>
> Dear Clip Programming Wizards:
>
> Over in the NTP General list, an aspiring novelist (Mike Brown) wants
> to keep track of his daily word counts. I made these clips which I'm
> sure many here can improve upon. Perhaps they are of no use to anybody
> but writers!
>
> Sorry about the copious comments but he is new to clip programming.
> Comments always helped me.
>
> If you contribute, we would both appreciate it.
>
> Thanks,
>
> rpdooling
>
> H=";"
>
> H=";Word Count"
> There are three clips in this WordCount group.^p^p(1) Insert Date &
> WordCount - Jumps to the end of your current document and inserts the
> date, time, and current total WordCount.^p^p(2) Start Counting Words -
> Obtains the total number of words in the current document and saves
> that value to the NoteTab ini value under the default ClipValues
> section as "StartWordCount."^p^p(3) Tally Daily Word Count - Obtains
> the total number of words in the current document and subtracts the
> starting word count for the tally of the words you've created.
>
> H="Insert Date & WordCount"
> ; Created: 10/30/2005 2:58:51 PM
> ; Author: rpd
> ; Modified:
> ;
> ; Jumps to the end of any kind of doc, even an outline.
> ^!Jump DOC_END
> ; Add a spacer.
> ^!Keyboard ENTER
>
> ; This issues the keyboard commands to open
> ; Text Statistics (under Tools)
> ; and then tab to get the word count, and copy to clipboard.
> ^!Keyboard ALT+T S Y TAB TAB TAB CTRL+C ESC
>
> ; This function gets the date and puts it at the end of your doc.
> ^!InsertText Date: ^$GetDate("c")$
> ^!Keyboard ENTER
>
> ; Paste in WordCount
> ^!InsertText WordCount:
> ^!Paste
>
> H="Start Counting Words"
> ; Created: 10/30/2005 3:01:17 PM
> ; Author: rpd
> ; Modified:
>
> ; Checks to see if this is an outline.
> ; If so it proceeds; if not
> ; it goes to the COUNTDOC label.
> ^!IfTrue ^$IsOutlineDoc$ NEXT ELSE COUNTDOC
>
> ; Opens Text Statistics using keyboard commands
> ; and gets the wordcount. The "Y" deals with
> ; the dialogue that pops up and asks if you want
> ; to scan all outline headings.
> ^!Keyboard ALT+T S Y TAB TAB TAB CTRL+C ALT+C
>
> ; Now we have the wordcount, let's go save it.
> ^!GoTo SAVEWORDCOUNT
>
> :COUNTDOC
> ; This gets the wordcount in a normal doc
> ^!Keyboard ALT+T S TAB TAB TAB CTRL+C ALT+C
>
> :SAVEWORDCOUNT
> ; Assigns your starting WordCount to WordCount1
> ^!Set %WordCount1%=^$GetClipboard$
>
> ; Saves your starting WordCount to the NotePro ini file
> ; under a key consisting of the
> ; DosShortName + SWC (for StartWordCount)
> ; in the default ClipValues section.
> ^!SaveValue ClipValues:^$GetShort(^##)$SWC=^%WordCount1%
>
> ; Display your starting WordCount in a pretty Info box.
> ^!Info Your starting WordCount is ^%WordCount1%
>
> H="Tally Daily WordCount"
> ; Created: 10/30/2005 3:02:08 PM
> ; Author: rpd
> ; Modified:
>
> ; Checks to see if this is an outline.
> ; If so it proceeds; if not
> ; it goes to the COUNTDOC label.
> ^!IfTrue ^$IsOutlineDoc$ NEXT ELSE COUNTDOC
>
> ; Opens Text Statistics using keyboard commands
> ; and gets the wordcount. The "Y" deals with
> ; the dialogue that pops up and asks if you want
> ; to scan all outline headings.
> ^!Keyboard ALT+T S Y TAB TAB TAB CTRL+C ALT+C
>
> ; Now we have the wordcount, let's go save it.
> ^!GoTo TALLYWORDS
>
> :COUNTDOC
> ; This gets the wordcount in a normal doc
> ^!Keyboard ALT+T S TAB TAB TAB CTRL+C ALT+C
>
> :TALLYWORDS
> ; Retrieves your starting WordCount from the NotePro ini file,
> ; where you saved it with the clip "Start Counting Words,"
> ; and assigns the number to WordCount1.
> ^!Set %WordCount1%=^$GetValue("ClipValues:^$GetShort(^##)$SWC")$
> ; If you didn't save a StartWordCount, you'll get an error.
> ^!IfError NOSTART
>
> ; Gets current WordCount total from the clipboard
> ; and assigns it to WordCount2.
> ^!Set %WordCount2%=^$GetClipboard$
> ; Calculate Tally by subtracting WordCount1 from WordCount2
> ^!Set %Tally%=^$Calc(^%WordCount2%-^%WordCount1%)$
>
> ^!Info [L]Your starting WordCount was ^%WordCount1%^p^pYour current
> WordCount is ^%WordCount2%^p^pYou have created ^%Tally% words!
>
> ^!Goto End
>
> :NOSTART
> ^!Info [L]There was an error. You probably didn't save your your
> starting WordCount.^p^pGo back and run the Start Counting Words clip!
>

#14372 From: "BrianHulse" <BrianHulse@...>
Date: Tue Nov 1, 2005 4:06 pm
Subject: Table of Contents from HTML Headings?
BrianHulse
Send Email Send Email
 
I searched for a clip like this and was surprised that I did not find
one.

Scan through an HTML document and create a table of contents using the
headings tags.

Is there one and I missed it? If not, could someone give me some
pointers on creating one? I've never written a clip, but I'd like to
have this enough that I'd be willing to try.

Thanks in advance,

Brian

#14373 From: "Alec Burgess \(g\)" <buralex@...>
Date: Wed Nov 2, 2005 12:46 am
Subject: Re: [Clip] Table of Contents from HTML Headings?
alecb3ca
Send Email Send Email
 
Hi Brian:

If you use Firefox ...

Document Map 0.4, by James Graham, released on March 22, 2005
Displays the current page's heading structure in the sidebar, allowing rapid
navigation between sections

https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&category=\
Developer%20Tools&numpg=10&id=475

If you use All-In-One Sidebar you can get the document map sidebar in a main
window and capture its HTML that way.

Regards ... Alec
--
; ( ) {  } [ ] \ |  9 0  + =  () {} []


---- Original Message ----
From: "BrianHulse" <BrianHulse@...>
To: <ntb-clips@yahoogroups.com>
Sent: Tuesday, November 01, 2005 11:06
Subject: [gla: [Clip] Table of Contents from HTML Headings?

> I searched for a clip like this and was surprised that I
> did not find one.
>
> Scan through an HTML document and create a table of
> contents using the headings tags.
>
> Is there one and I missed it? If not, could someone give
> me some
> pointers on creating one? I've never written a clip, but
> I'd like to
> have this enough that I'd be willing to try.
>
> Thanks in advance,
>
> Brian
>
>
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> Get Bzzzy! (real tools to help
> you find a job). Welcome to the Sweet Life.
> http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/dkFolB/TM
> --------------------------------------------------------------------~->
>
> Fookes Software: http://www.fookes.us,
> http://www.fookes.com
> Fookes Software Mailing Lists:
> http://www.fookes.us/maillist.htm
>
> Yahoo! Groups Links
>
>
>

#14374 From: "Martin ONeill" <mooneqs@...>
Date: Wed Nov 2, 2005 6:09 am
Subject: Re: Table of Contents from HTML Headings?
mooneqs
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, "BrianHulse" <BrianHulse@u...>
wrote:
>
> I searched for a clip like this and was surprised that I did not
find one.
>
> Scan through an HTML document and create a table of contents using
the headings tags.

I too, would like this in order to process html files generated by my
estimating program which I then convert to Mobipocket REader files for
my PDA.  It would be nice to be able to do this in NoteTab rather than
having to use another program.

Thanks,
Martin

#14375 From: "Martin ONeill" <mooneqs@...>
Date: Fri Nov 4, 2005 8:31 am
Subject: Clip to Convert opml to TreePad format
mooneqs
Send Email Send Email
 
Does anyone have a clip to convert opml files to TreePAd format?  or
even to convert opml to any other format which I could use as a
starting point.

Many thanks,
Martin

#14376 From: "LaurieK" <ladyck3@...>
Date: Sat Nov 5, 2005 1:45 pm
Subject: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
ladyck3
Send Email Send Email
 
I have a listing of Hyperlinks, thing is, I need to extract the URLs and
save them so ultimately I have a listing of the text which is the hyperlink
and a column or listing on document (having two ntb files open, or making it
so I can paste into Excel and it will paste in side by side array) the
hyperlink and then the column.  For instance.....    notetab

I would want this to appear as follows:

notetab                      http://www.notetab.com



Alan, you helped me in the past with the clip to erradicate tables from
around hyperlinks to produce a numbered list (which I actually was able to
change to bulleted ALL ON MY OWN)  I'm a dunce when it comes to this
stuff.... so please help.. clip language is just more than my old brain can
wrap around.  Thanks so much in advance for whatever help you Gurus can
lend!

Thanks BAZILLIONS...

Laurie
(aka ladyck3)

#14377 From: "acummingsus" <acummingsus@...>
Date: Sat Nov 5, 2005 7:17 pm
Subject: Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
acummingsus
Send Email Send Email
 
(Perhaps?) someone already has or knows of clip that can do what you
want?  If not, to make it should not very difficult to do.

I would tend to find

<A HREF

then toolbar "match bracket"

then $getselection$

which gives you from <A HREF    to    </A>

then pick out the two needed/desired pieces.  And that should work
unless the html markup has some serious problems.
--

> (so as to end up with): > of the text which is the hyperlink
> and a column or listing (on document)

Does that mean the hyperlinked text needs to become the column on the
left while the referenced url becones the column on the right?

IOW do you source these from one file at a time in the typical html
markup form of <a href which includes both a hyperlink to click on and
a referenced url that gets visited when the hyperlink is clicked.

What does an unconverted sample look like?

I got it what you need as output.

And I "think" I have it for the input but I wanted to clarify.

Here's one from a netscape bookmark file

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
     <DL>
         <DT><A HREF="http://www.google.com/" LAST_VISIT="1128552644"
LAST_CHARSET="UTF-8" ID="rdf:#$iLJTK2">Google</A>

In that example, Google would go on the left and the url to google
would go on the right.

Alan.

--- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...> wrote:
>
> I have a listing of Hyperlinks, thing is, I need to extract the URLs
and
> save them so ultimately I have a listing of the text which is the
hyperlink
> and a column or listing on document (having two ntb files open, or
making it
> so I can paste into Excel and it will paste in side by side array) the
> hyperlink and then the column.  For instance.....    notetab
>
> I would want this to appear as follows:
>
> notetab                      http://www.notetab.com
>
>
>
> Alan, you helped me in the past with the clip to erradicate tables from
> around hyperlinks to produce a numbered list (which I actually was
able to
> change to bulleted ALL ON MY OWN)  I'm a dunce when it comes to this
> stuff.... so please help.. clip language is just more than my old
brain can
> wrap around.  Thanks so much in advance for whatever help you Gurus can
> lend!
>
> Thanks BAZILLIONS...
>
> Laurie
> (aka ladyck3)
>

#14378 From: "LaurieK" <ladyck3@...>
Date: Sun Nov 6, 2005 4:10 am
Subject: Re: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
ladyck3
Send Email Send Email
 
Thanks for the reply... but what's been provided is greek to me :(

I do thank you for your time however.... I'll keep looking :)

Thanks!
Laurie

----- Original Message -----
From: "acummingsus" <acummingsus@...>
To: <ntb-clips@yahoogroups.com>
Sent: Saturday, November 05, 2005 1:17 PM
Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs


> (Perhaps?) someone already has or knows of clip that can do what you
> want?  If not, to make it should not very difficult to do.
>
> I would tend to find
>
> <A HREF
>
> then toolbar "match bracket"
>
> then $getselection$
>
> which gives you from <A HREF    to    </A>
>
> then pick out the two needed/desired pieces.  And that should work
> unless the html markup has some serious problems.
> --
>
>> (so as to end up with): > of the text which is the hyperlink
>> and a column or listing (on document)
>
> Does that mean the hyperlinked text needs to become the column on the
> left while the referenced url becones the column on the right?
>
> IOW do you source these from one file at a time in the typical html
> markup form of <a href which includes both a hyperlink to click on and
> a referenced url that gets visited when the hyperlink is clicked.
>
> What does an unconverted sample look like?
>
> I got it what you need as output.
>
> And I "think" I have it for the input but I wanted to clarify.
>
> Here's one from a netscape bookmark file
>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
> <TITLE>Bookmarks</TITLE>
>    <DL>
>        <DT><A HREF="http://www.google.com/" LAST_VISIT="1128552644"
> LAST_CHARSET="UTF-8" ID="rdf:#$iLJTK2">Google</A>
>
> In that example, Google would go on the left and the url to google
> would go on the right.
>
> Alan.
>
> --- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...> wrote:
>>
>> I have a listing of Hyperlinks, thing is, I need to extract the URLs
> and
>> save them so ultimately I have a listing of the text which is the
> hyperlink
>> and a column or listing on document (having two ntb files open, or
> making it
>> so I can paste into Excel and it will paste in side by side array) the
>> hyperlink and then the column.  For instance.....    notetab
>>
>> I would want this to appear as follows:
>>
>> notetab                      http://www.notetab.com
>>
>>
>>
>> Alan, you helped me in the past with the clip to erradicate tables from
>> around hyperlinks to produce a numbered list (which I actually was
> able to
>> change to bulleted ALL ON MY OWN)  I'm a dunce when it comes to this
>> stuff.... so please help.. clip language is just more than my old
> brain can
>> wrap around.  Thanks so much in advance for whatever help you Gurus can
>> lend!
>>
>> Thanks BAZILLIONS...
>>
>> Laurie
>> (aka ladyck3)
>>
>
>
>
>
>
>
>
> Fookes Software: http://www.fookes.us, http://www.fookes.com
> Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

#14379 From: hsavage <hsavage@...>
Date: Sun Nov 6, 2005 5:05 am
Subject: Re: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
hrs62930
Send Email Send Email
 
>> --- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...> wrote:
  >>> I have a listing of Hyperlinks, thing is, I need to extract the URLs
  >> and
  >>> save them so ultimately I have a listing of the text which is the
  >> hyperlink
  >>> and a column or listing on document (having two ntb files open, or
  >> making it
  >>> so I can paste into Excel and it will paste in side by side array) the
  >>> hyperlink and then the column.  For instance.....    notetab
  >>>
  >>> I would want this to appear as follows:
  >>>
  >>> notetab                      http://www.notetab.com

Laurie,

Paste several lines from an actual file you're trying to columnize links
from, that, with the example above, will help determine which processes
to use.

ēvē
05.11.05
hrs > hsavage@...

#14380 From: "acummingsus" <acummingsus@...>
Date: Sun Nov 6, 2005 7:55 am
Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
acummingsus
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...> wrote:
>
> Thanks for the reply... but what's been provided is greek to me :(

here's a couple initial (perhaps first draft) clips just to get the
ball started rolling.

I try again.  I didn't mean for it to be Greek to you.

I posted to the list.  But the portion of my post intended for you lay
further down in my post.  Perhaps I should have notified to that effect.

Here are two clips.  Once the clip been run and output is into a new
doc, can you then just use the notetab menu to strip the html? (in the
hope of leaving you with your url and text from hypertext)

(I'm on Linux right now) -- I downloaded ulAhref.clb from yahoo files
area and then I modified it using the Kate editor in the KDE desktop
of Slackware 10.2 Linux that I am running.

The two clips are a unit.  Add them to any library you want.  But if
Laurie adds to ulAhref.clb then the 2nd clip is not needed to add
because it is already in ulAhref.clb.  The first of the next two clips
is the only clip that is not already in ulAhref.clb.

H="pick_url_hypr_ahref"
^!ClearVariables
^!SetWordWrap OFF
^!Jump DOC_START
^!SetScreenUpdate OFF
:do_while
^!Find "</a>" IS
^!IfError publish
^!Jump SELECT_END
^!Set %loc2%=^$GetRow$:^$GetCol$
^!Set %tbltag%="<a href"; %dir_amnt%=-1
^!Clip zero_in_sub
^!Jump SELECT_START
^!SelectTo ^%loc2%
^!Set %a_link%=^$GetSelection$
; strips the xtra line breaks from link texts
^!Set %a_link%=^$StrReplace("^P";"";"^%a_link%";0;0)$
^!Append %my_links%=^%a_link%^%NL%
^!Jump SELECT_END
^!Goto do_while
:publish
^!Set %my_links%=^%my_links%
^!Menu file/new
^!Insert ^%my_links%

H="_zero_in_sub"
:more
^!Jump SELECT_START
^!Jump ^%dir_amnt%
^!Select LINE
^!Find "^%tbltag%" ISH
^!IfError more else next
; ---- end of clips

Alan.
>
> I do thank you for your time however.... I'll keep looking :)
>
> Thanks!
> Laurie
>
> ----- Original Message -----
> From: "acummingsus" <acummingsus@g...>
> To: <ntb-clips@yahoogroups.com>
> Sent: Saturday, November 05, 2005 1:17 PM
> Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting
URLs
>
>
> > (Perhaps?) someone already has or knows of clip that can do what you
> > want?  If not, to make it should not very difficult to do.
> >
> > I would tend to find
> >
> > <A HREF
> >
> > then toolbar "match bracket"
> >
> > then $getselection$
> >
> > which gives you from <A HREF    to    </A>
> >
> > then pick out the two needed/desired pieces.  And that should work
> > unless the html markup has some serious problems.
> > --
> >
> >> (so as to end up with): > of the text which is the hyperlink
> >> and a column or listing (on document)
> >
> > Does that mean the hyperlinked text needs to become the column on the
> > left while the referenced url becones the column on the right?
> >
> > IOW do you source these from one file at a time in the typical html
> > markup form of <a href which includes both a hyperlink to click on and
> > a referenced url that gets visited when the hyperlink is clicked.
> >
> > What does an unconverted sample look like?
> >
> > I got it what you need as output.
> >
> > And I "think" I have it for the input but I wanted to clarify.
> >
> > Here's one from a netscape bookmark file
> >
> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
> > <TITLE>Bookmarks</TITLE>
> >    <DL>
> >        <DT><A HREF="http://www.google.com/" LAST_VISIT="1128552644"
> > LAST_CHARSET="UTF-8" ID="rdf:#$iLJTK2">Google</A>
> >
> > In that example, Google would go on the left and the url to google
> > would go on the right.
> >
> > Alan.
> >
> > --- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...> wrote:
> >>
> >> I have a listing of Hyperlinks, thing is, I need to extract the URLs
> > and
> >> save them so ultimately I have a listing of the text which is the
> > hyperlink
> >> and a column or listing on document (having two ntb files open, or
> > making it
> >> so I can paste into Excel and it will paste in side by side
array) the
> >> hyperlink and then the column.  For instance.....    notetab
> >>
> >> I would want this to appear as follows:
> >>
> >> notetab                      http://www.notetab.com
> >>

#14381 From: "Martin ONeill" <mooneqs@...>
Date: Sun Nov 6, 2005 9:33 am
Subject: Strip XML tags
mooneqs
Send Email Send Email
 
I think an OPML file is in XML.  How can I strip XML tags.  If I use
strip HTML tags then all the data is stripped out as well.

Thanks
Martin

#14382 From: loro <loro-spam01-@...>
Date: Sun Nov 6, 2005 11:06 am
Subject: Re: [Clip] Strip XML tags
yastupidhoo
Send Email Send Email
 
Martin ONeill wrote:
>I think an OPML file is in XML.  How can I strip XML tags.  If I use
>strip HTML tags then all the data is stripped out as well.

Is it the radio UserLand outline stuff you mean? Like this one?
<http://static.userland.com/gems/radiodiscuss/specification.opml>

Almost all tags are empty and the real content is in the attribute values,
so Strip HTML won't work. You could use ^$GetHtmlTagAttr()$ .

As an example, to get the value of "text" and strip the rest of the
<outline> tags in the document above you could do something like this.

---------------------
H="OPML"
^!Jump text_start
:loop
^!Find <outline IS
^!IfError end
^!Replace "^$GetHTMLTag$" >> "^$GetHtmlTagAttr("^$GetHTMLTag$";text)$" S
^!Goto loop
---------------------

I know there can be several attributes and that there are more things both
to strip and preserve. Just a push (hopefully) in the right direction. ;-)

Lotta

#14383 From: "Martin ONeill" <mooneqs@...>
Date: Sun Nov 6, 2005 1:35 pm
Subject: Re: Strip XML tags
mooneqs
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, loro <loro-spam01-@t...> wrote:
> Is it the radio UserLand outline stuff you mean? Like this one?
> <http://static.userland.com/gems/radiodiscuss/specification.opml>

I'm not sure as that page would not load for me.  The opml I'm
referring to is on http://www.opml.org/spec

I have tried your clip, but on a small circa 50k file, the clip goes
into some sort of loop and does not finish.

I don't know anything about XML and probably need to learn a bit.  Is
there any simple online source that I could refer to? - particularly
regarding the XML tags.

Many thanks,
Martin

#14384 From: "LaurieK" <ladyck3@...>
Date: Sun Nov 6, 2005 9:56 pm
Subject: Re: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
ladyck3
Send Email Send Email
 
FANTASTICAL... that extracted the URLs alright.... THANKS MUCH....

It take some work yet, once in Excel but its a far cry better than what I've
been doing manually... thank you Alan, once again!!


----- Original Message -----
From: "acummingsus" <acummingsus@...>
To: <ntb-clips@yahoogroups.com>
Sent: Sunday, November 06, 2005 1:55 AM
Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs


> --- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...> wrote:
>>
>> Thanks for the reply... but what's been provided is greek to me :(
>
> here's a couple initial (perhaps first draft) clips just to get the
> ball started rolling.
>
> I try again.  I didn't mean for it to be Greek to you.
>
> I posted to the list.  But the portion of my post intended for you lay
> further down in my post.  Perhaps I should have notified to that effect.
>
> Here are two clips.  Once the clip been run and output is into a new
> doc, can you then just use the notetab menu to strip the html? (in the
> hope of leaving you with your url and text from hypertext)
>
> (I'm on Linux right now) -- I downloaded ulAhref.clb from yahoo files
> area and then I modified it using the Kate editor in the KDE desktop
> of Slackware 10.2 Linux that I am running.
>
> The two clips are a unit.  Add them to any library you want.  But if
> Laurie adds to ulAhref.clb then the 2nd clip is not needed to add
> because it is already in ulAhref.clb.  The first of the next two clips
> is the only clip that is not already in ulAhref.clb.
>
> H="pick_url_hypr_ahref"
> ^!ClearVariables
> ^!SetWordWrap OFF
> ^!Jump DOC_START
> ^!SetScreenUpdate OFF
> :do_while
> ^!Find "</a>" IS
> ^!IfError publish
> ^!Jump SELECT_END
> ^!Set %loc2%=^$GetRow$:^$GetCol$
> ^!Set %tbltag%="<a href"; %dir_amnt%=-1
> ^!Clip zero_in_sub
> ^!Jump SELECT_START
> ^!SelectTo ^%loc2%
> ^!Set %a_link%=^$GetSelection$
> ; strips the xtra line breaks from link texts
> ^!Set %a_link%=^$StrReplace("^P";"";"^%a_link%";0;0)$
> ^!Append %my_links%=^%a_link%^%NL%
> ^!Jump SELECT_END
> ^!Goto do_while
> :publish
> ^!Set %my_links%=^%my_links%
> ^!Menu file/new
> ^!Insert ^%my_links%
>
> H="_zero_in_sub"
> :more
> ^!Jump SELECT_START
> ^!Jump ^%dir_amnt%
> ^!Select LINE
> ^!Find "^%tbltag%" ISH
> ^!IfError more else next
> ; ---- end of clips
>
> Alan.
>>
>> I do thank you for your time however.... I'll keep looking :)
>>
>> Thanks!
>> Laurie
>>
>> ----- Original Message -----
>> From: "acummingsus" <acummingsus@g...>
>> To: <ntb-clips@yahoogroups.com>
>> Sent: Saturday, November 05, 2005 1:17 PM
>> Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting
> URLs
>>
>>
>> > (Perhaps?) someone already has or knows of clip that can do what you
>> > want?  If not, to make it should not very difficult to do.
>> >
>> > I would tend to find
>> >
>> > <A HREF
>> >
>> > then toolbar "match bracket"
>> >
>> > then $getselection$
>> >
>> > which gives you from <A HREF    to    </A>
>> >
>> > then pick out the two needed/desired pieces.  And that should work
>> > unless the html markup has some serious problems.
>> > --
>> >
>> >> (so as to end up with): > of the text which is the hyperlink
>> >> and a column or listing (on document)
>> >
>> > Does that mean the hyperlinked text needs to become the column on the
>> > left while the referenced url becones the column on the right?
>> >
>> > IOW do you source these from one file at a time in the typical html
>> > markup form of <a href which includes both a hyperlink to click on and
>> > a referenced url that gets visited when the hyperlink is clicked.
>> >
>> > What does an unconverted sample look like?
>> >
>> > I got it what you need as output.
>> >
>> > And I "think" I have it for the input but I wanted to clarify.
>> >
>> > Here's one from a netscape bookmark file
>> >
>> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
>> > <TITLE>Bookmarks</TITLE>
>> >    <DL>
>> >        <DT><A HREF="http://www.google.com/" LAST_VISIT="1128552644"
>> > LAST_CHARSET="UTF-8" ID="rdf:#$iLJTK2">Google</A>
>> >
>> > In that example, Google would go on the left and the url to google
>> > would go on the right.
>> >
>> > Alan.
>> >
>> > --- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...> wrote:
>> >>
>> >> I have a listing of Hyperlinks, thing is, I need to extract the URLs
>> > and
>> >> save them so ultimately I have a listing of the text which is the
>> > hyperlink
>> >> and a column or listing on document (having two ntb files open, or
>> > making it
>> >> so I can paste into Excel and it will paste in side by side
> array) the
>> >> hyperlink and then the column.  For instance.....    notetab
>> >>
>> >> I would want this to appear as follows:
>> >>
>> >> notetab                      http://www.notetab.com
>> >>
>
>
>
>
>
>
>
>
> Fookes Software: http://www.fookes.us, http://www.fookes.com
> Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

#14385 From: loro <loro-spam01-@...>
Date: Sun Nov 6, 2005 10:21 pm
Subject: Re: [Clip] Re: Strip XML tags
yastupidhoo
Send Email Send Email
 
Martin ONeill wrote:
>I'm not sure as that page would not load for me.  The opml I'm
>referring to is on http://www.opml.org/spec

Yeah, they have a link to sample file I posted a link to. We talk about the
a same thing. That's a starting point. ;-)

>I have tried your clip, but on a small circa 50k file, the clip goes
>into some sort of loop and does not finish.

Don't know why it loops, but it only looks for the 'text' attributes found
in that sample file.

>I don't know anything about XML and probably need to learn a bit.  Is
>there any simple online source that I could refer to?

The samples at opml.org, I guess. But you don't need to know XML, more than
to understand the concept of tags. If you have this
<tag>Content</tag>
"Strip HTML" gets rid of '<tag>' and '</tag>' and leaves 'Content'.

But this OPML format seems to build on mostly empty elements (they have no
content), with the bits you want to keep in attributes. Like so.
<tag attr="stuff we want here" />
"Strip HTML" kills the whole tag and leaves you with nothing. That's why
you must find the attribute values and save them somehow.
^$GetHtmlTagAttr()$ does that.

   If you post a link to a file of the type you are actually working with,
or a long enough sample of it, someone can probably come up with something.

Lotta

#14386 From: "acummingsus" <acummingsus@...>
Date: Mon Nov 7, 2005 6:30 am
Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
acummingsus
Send Email Send Email
 
(I booted Windows today - I hear a penguin noise :-) )

Ok that 1st clip work for you but not for me.  4 me it stuck looping -
- I killed it via ctrl+alt

No line breaks in my <a href

is the reason why it didn't work for me.

Here's another clip.  It works rather nicely when run on a Netscape
bookmarks html file which has no line breaks in the <a href.

(probably importantly) Any clips I/we write are just a guess at this
point since we do not yet know what sort of html is your source.  Nor
do we yet know if or how your source may vary.

Also, (outside the links) very little other html exists in a Netscape
bookmarks file (only a very slight unwanted text content left behind
when use next clip).  Worked super here on said html file.  But I
haven't a clue if it will work for you on *whatever* your html is.

H="pick_url_hypr_ahref2"
^!Set %fil2parse%=^$GetShort(^**)$
^!Menu file/new
^!Insert ^$GetFileText(^%fil2parse%)$
^!SetWordWrap OFF
^!Select ALL
^$StrStripHTML("^$GetSelection$";True)$
^!Replace "<" >> "^%NL%" ISWA
^!Replace "{^.+>}{.+}" >> "\2   \1" RISWA
^!Replace ">$" >> "" RISWA
^!Jump DOC_START
; ----end of clip ----

[ . . ]
> >> > --- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...>
wrote:
> >> >>
> >> >> I have a listing of Hyperlinks, thing is, I need to extract
the URLs
> >> > and
> >> >> save them so ultimately I have a listing of the text which is
the
> >> > hyperlink
> >> >> and a column or listing on document (having two ntb files
open, or
> >> > making it
> >> >> so I can paste into Excel and it will paste in side by side
> > array) the
> >> >> hyperlink and then the column.  For instance.....    notetab
> >> >>
> >> >> I would want this to appear as follows:
> >> >>
> >> >> notetab                      http://www.notetab.com
> >> >>

#14387 From: ladyck3@...
Date: Mon Nov 7, 2005 1:08 pm
Subject: Re: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
ladyck3
Send Email Send Email
 
If it helps... I derive the links from a website using Internet Explorer.. I
copy the lists ... there are many, into one document, then open it in NTB and
run the clip...

When I did, it saved the URLs in their <a href form (dont really need that, just
the http://www 's but its no problem... Find/replace.  Other's might use the
clip so it may be needed for others... no biggie.  Then the question associated
ends up below the URL but its not in one line, its truncated into maybe 25 or 30
characters per line.

When I paste this into Excel.. the URL fills one cell but the question next to
it will be split into many cells depending on the line breaks in the data.  I
can run a formula to concatenate the cells but if there's a way to perfect the
clip so the "question" itself is saved in one continuous line after the <a href>
Using the <a href> I would then have a > to use as a delimiter and can "Text to
column" easily.

<thinking out loud to myself and to you Alan>  hehe :)

Happy Monday, off to work...
Laurie

-------------- Original message --------------

> (I booted Windows today - I hear a penguin noise :-) )
>
> Ok that 1st clip work for you but not for me. 4 me it stuck looping -
> - I killed it via ctrl+alt
>
> No line breaks in my >
> is the reason why it didn't work for me.
>
> Here's another clip. It works rather nicely when run on a Netscape
> bookmarks html file which has no line breaks in the >
> (probably importantly) Any clips I/we write are just a guess at this
> point since we do not yet know what sort of html is your source. Nor
> do we yet know if or how your source may vary.
>
> Also, (outside the links) very little other html exists in a Netscape
> bookmarks file (only a very slight unwanted text content left behind
> when use next clip). Worked super here on said html file. But I
> haven't a clue if it will work for you on *whatever* your html is.
>
> H="pick_url_hypr_ahref2"
> ^!Set %fil2parse%=^$GetShort(^**)$
> ^!Menu file/new
> ^!Insert ^$GetFileText(^%fil2parse%)$
> ^!SetWordWrap OFF
> ^!Select ALL
> ^$StrStripHTML("^$GetSelection$";True)$
> ^!Replace "<" >> "^%NL%" ISWA
> ^!Replace "{^.+>}{.+}" >> "\2 \1" RISWA
> ^!Replace ">$" >> "" RISWA
> ^!Jump DOC_START
> ; ----end of clip ----
>
> [ . . ]
> > >> > --- In ntb-clips@yahoogroups.com, "LaurieK"
> wrote:
> > >> >>
> > >> >> I have a listing of Hyperlinks, thing is, I need to extract
> the URLs
> > >> > and
> > >> >> save them so ultimately I have a listing of the text which is
> the
> > >> > hyperlink
> > >> >> and a column or listing on document (having two ntb files
> open, or
> > >> > making it
> > >> >> so I can paste into Excel and it will paste in side by side
> > > array) the
> > >> >> hyperlink and then the column. For instance..... notetab
> > >> >>
> > >> >> I would want this to appear as follows:
> > >> >>
> > >> >> notetab http://www.notetab.com
> > >> >>
>
>
>
>
>
>
> Fookes Software: http://www.fookes.us, http://www.fookes.com
> Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
>
> Yahoo! Groups Links
>
>
>
>
>
>

[Non-text portions of this message have been removed]

#14388 From: "acummingsus" <acummingsus@...>
Date: Mon Nov 7, 2005 4:58 pm
Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
acummingsus
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, ladyck3@c... wrote:
>
> If it helps... I derive the links from a website using Internet
Explorer.. I copy the lists ... there are many, into one document,
then open it in NTB

We need to see a sample of that which is "opened" in NTB at that
point.  IOW sample of what's in doc at that point.

If it has sensitive info can you just leave the format the same but
substitute with non sensitive material

> and run the clip...

Which clip?  The last one I shared?
>
> When I did, it saved the URLs in their <a href form (dont really
need that, just the http://www 's but its no problem... Find/replace.
  Other's might use the clip so it may be needed for others... no biggie.

>Then the question associated ends up below the URL but its not in one
line,

I was unaware of a "question associated" I was only aware of the "text
that come from the hyperlink"

We need to see more in the way of samples.

sample input (as I listed above at point in NTB doc just prior to
running of clip)

+ also *desired* sample output that originated from the input I mentioned.

Alan.

  its truncated into maybe 25 or 30 characters per line.
>
> When I paste this into Excel.. the URL fills one cell but the
question next to it will be split into many cells depending on the
line breaks in the data.  I can run a formula to concatenate the cells
but if there's a way to perfect the clip so the "question" itself is
saved in one continuous line after the <a href>    Using the <a href>
I would then have a > to use as a delimiter and can "Text to column"
easily.
>
> <thinking out loud to myself and to you Alan>  hehe :)
>
> Happy Monday, off to work...
> Laurie

#14389 From: "LaurieK" <ladyck3@...>
Date: Tue Nov 8, 2005 12:10 am
Subject: Re: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
ladyck3
Send Email Send Email
 
Ok, here it is step by step.   First I copy data

a.. Can I Download To My Device?
a.. How Do I Adjust the Volume On My Device?
a.. How Do I Mute My Device?
a.. How Do I Unlock My Device?

The clip from the first email you sent (have not had a chance to test the
one from this morning, was BIZZY ALL DAY)
Produces this:

<a href="http://www.company.com/file1.htm">Can I Download To My Device?</a>
<a href="http://www.company.com/file2.htm"><font face="Arial"> <span
style="font-size: 10pt">How Do I Adjust the Volume On My
Device?</span></font> </a>
<a href="http://www.company.com/file2.htm"><font face="Arial"> <span
style="font-size: 10pt">How Do I Adjust the Volume On My
Device?</span></font> </a></li> <li style="line-height: 150%; margin-top:
0px; margin-bottom: 0px"> <font face="Arial"><span style="font-size: 10pt">
<a href="http://www.company.com/file3.htm">How Do I Mute My Device?</a>
<a href="http://www.company.com/file4.htm"><font face="Arial"> <span
style="font-size: 10pt">How Do I Unlock My Device?</span></font> </a>
================================================================================\
=======
Ultimately what I wish the end result to be is a text file that I can just
copy/paste into Excel to appear like this:

       Can I Download To My Device?  http://www.company.com/file1.htm
       How Do I Adjust the Volume On My Device?
http://www.company.com/file2.htm
       How Do I Mute My Device?  http://www.company.com/file3.htm
       How Do I Unlock My Device?  http://www.company.com/file4.htm



It makes on difference which column the URLs fall into thats no biggie
================================================================================\
==========

Now the let me try the clip you sent in email this morning... the clip is
workable but we may want to then add a comma and make it delimited..... or I
can just do a find and replace, that's no biggie either..... the one thing
I'd like to eliminate with this is the blank lines, supressing blank lines
is a biggie

       Can I Download To My Device

       Can I Download To My Device?   http://www.company.com/file1.htm

       How Do I Adjust the Volume On My Device?
http://www.company.com/file2.htm

       How Do I Mute My Device?   http://www.company.com/file3.htm

       How Do I Unlock My Device?   http://www.company.com/file4.htm



The hyperlink should not be there on the last one, sorry don't feel like
putzing to remove it.

Anyway, when I paste this into Excel it becomes question and URL in one cell
straight across. If I paste from Excel it appears as the example directly
above this paragraph....

Does this make the mud a bit clearer? :)

Thanks again Alan!!   this is do-able if you don't feel like playing with
it, seriously.... I feel like I'm asking for the moon or something, I hate
having to depend on others for this stuff.... I just have not been able to
devote the time to learning clip writing and frankly, just  have difficulty
wrapping my head around it.... it overwhelms me at times with all that runs
through my head, its just too much more to add.

I appreciate all the help the group provides when needed!!!

Laurie



----- Original Message -----
From: "acummingsus" <acummingsus@...>
To: <ntb-clips@yahoogroups.com>
Sent: Monday, November 07, 2005 10:58 AM
Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs


> --- In ntb-clips@yahoogroups.com, ladyck3@c... wrote:
>>
>> If it helps... I derive the links from a website using Internet
> Explorer.. I copy the lists ... there are many, into one document,
> then open it in NTB
>
> We need to see a sample of that which is "opened" in NTB at that
> point.  IOW sample of what's in doc at that point.
>
> If it has sensitive info can you just leave the format the same but
> substitute with non sensitive material
>
>> and run the clip...
>
> Which clip?  The last one I shared?
>>
>> When I did, it saved the URLs in their <a href form (dont really
> need that, just the http://www 's but its no problem... Find/replace.
> Other's might use the clip so it may be needed for others... no biggie.
>
>>Then the question associated ends up below the URL but its not in one
> line,
>
> I was unaware of a "question associated" I was only aware of the "text
> that come from the hyperlink"
>
> We need to see more in the way of samples.
>
> sample input (as I listed above at point in NTB doc just prior to
> running of clip)
>
> + also *desired* sample output that originated from the input I mentioned.
>
> Alan.
>
> its truncated into maybe 25 or 30 characters per line.
>>
>> When I paste this into Excel.. the URL fills one cell but the
> question next to it will be split into many cells depending on the
> line breaks in the data.  I can run a formula to concatenate the cells
> but if there's a way to perfect the clip so the "question" itself is
> saved in one continuous line after the <a href>    Using the <a href>
> I would then have a > to use as a delimiter and can "Text to column"
> easily.
>>
>> <thinking out loud to myself and to you Alan>  hehe :)
>>
>> Happy Monday, off to work...
>> Laurie
>
>
>
>
>
>
>
>
> Fookes Software: http://www.fookes.us, http://www.fookes.com
> Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

#14390 From: "acummingsus" <acummingsus@...>
Date: Tue Nov 8, 2005 6:46 am
Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
acummingsus
Send Email Send Email
 
--- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...> wrote:
>
> Ok, here it is step by step.   First I copy data
>
> a.. Can I Download To My Device?
> a.. How Do I Adjust the Volume On My Device?

did these get truncated by google

> [ . . ] the one thing
> I'd like to eliminate with this is the blank lines, supressing blank
lines
> is a biggie
>
>       Can I Download To My Device?   http://www.company.com/file1.htm
>
>       How Do I Adjust the Volume On My Device?
> http://www.company.com/file2.htm

next has one more line of code added very near the end of clip that
let no blank lines

H="pick_url_hypr_ahref3"
^!Set %fil2parse%=^$GetShort(^**)$
^!Menu file/new
^!Insert ^$GetFileText(^%fil2parse%)$
^!SetWordWrap OFF
^!Select ALL
^$StrStripHTML("^$GetSelection$";True)$
^!Replace "<" >> "^%NL%" ISWA
^!Replace "{^.+>}{.+}" >> "\2   \1" RISWA
^!Replace ">$" >> "" RISWA
^!Replace "^p^p" >> "^p" ISWA
^!Jump DOC_START
; ---- end ----


Alan.

#14391 From: "LaurieK" <ladyck3@...>
Date: Wed Nov 9, 2005 4:39 am
Subject: Re: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs
ladyck3
Send Email Send Email
 
By Jove.... You've GOT IT!!!    Oh Thank you Alan... Thank you VERY MUCH!
You have NO CLUE how this will help!!!

<bowing>   Thank you thank you thankyou!!!

Laurie

----- Original Message -----
From: "acummingsus" <acummingsus@...>
To: <ntb-clips@yahoogroups.com>
Sent: Tuesday, November 08, 2005 12:46 AM
Subject: [Clip] Re: Ok Guru's I need HELP! Hyperlinks and Extracting URLs


> --- In ntb-clips@yahoogroups.com, "LaurieK" <ladyck3@c...> wrote:
>>
>> Ok, here it is step by step.   First I copy data
>>
>> a.. Can I Download To My Device?
>> a.. How Do I Adjust the Volume On My Device?
>
> did these get truncated by google
>
>> [ . . ] the one thing
>> I'd like to eliminate with this is the blank lines, supressing blank
> lines
>> is a biggie
>>
>>       Can I Download To My Device?   http://www.company.com/file1.htm
>>
>>       How Do I Adjust the Volume On My Device?
>> http://www.company.com/file2.htm
>
> next has one more line of code added very near the end of clip that
> let no blank lines
>
> H="pick_url_hypr_ahref3"
> ^!Set %fil2parse%=^$GetShort(^**)$
> ^!Menu file/new
> ^!Insert ^$GetFileText(^%fil2parse%)$
> ^!SetWordWrap OFF
> ^!Select ALL
> ^$StrStripHTML("^$GetSelection$";True)$
> ^!Replace "<" >> "^%NL%" ISWA
> ^!Replace "{^.+>}{.+}" >> "\2   \1" RISWA
> ^!Replace ">$" >> "" RISWA
> ^!Replace "^p^p" >> "^p" ISWA
> ^!Jump DOC_START
> ; ---- end ----
>
>
> Alan.
>
>
>
>
>
>
>
> Fookes Software: http://www.fookes.us, http://www.fookes.com
> Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

#14392 From: "Sathya Sivam" <sathyasivam@...>
Date: Fri Nov 11, 2005 8:29 am
Subject: otl heading list style window?
sathyasivam
Send Email Send Email
 
Is it possible to create outline heading list style window through
clips?

Or can i extended the list available (documents, favouritesl, etc.)  in
quick list through clips?

#14393 From: "thefrank" <tf@...>
Date: Sun Nov 13, 2005 8:42 pm
Subject: MD5 checksum clip
thefrankwmx
Send Email Send Email
 
someone on the html list was having a problem downloading corrupted
files. MD5 is an easy way to checksum any files you would offer for
download from your websites. this function is built into NoteTab.

here is a clip that will get the MD5 result for a file:

^!ClearVariables
^!SetWizardTitle Get MD5
^!SetWizardLabel browse and select file
^!Set %filename%=^?{(T=O;)}
^!Set %goodquery%=^$GetMD5Text(^%filename%)$
^!Info ^%goodquery%

here is an example of how I use it:

http://www.thefrank.com/ntp

any variance at all should generate a different MD5 checksum, even
one that does not change the kb of the filesize.

the MD5 checksum hash is also good to use with databases. use it to
checksum new data with any existing old data to verify that you are
not storing duplicate files under different names.

regards,

tf

http://www.thefrank.com

#14394 From: "rpdooling" <rpdooling@...>
Date: Mon Nov 14, 2005 4:18 am
Subject: Re: MD5 checksum clip
rpdooling
Send Email Send Email
 
Dear TF:

I've never understood or used md5. Everytime I've tried it I get
nonmatches. Like the number you have on your site is different than
what I get when I run the below clip on the ColorPalettes.Zip file I
downloaded from your site. Not only that, if I download it again, the
result is yet a third different number.

Also, doesn't your clip get the md5 result for a FILE not the text in
a file? There are two different functions in the NoteTab utilities
file. If there is a difference.

Oh well,

rpd

--- In ntb-clips@yahoogroups.com, "thefrank" <tf@t...> wrote:
>
> someone on the html list was having a problem downloading corrupted
> files. MD5 is an easy way to checksum any files you would offer for
> download from your websites. this function is built into NoteTab.
>
> here is a clip that will get the MD5 result for a file:
>
> ^!ClearVariables
> ^!SetWizardTitle Get MD5
> ^!SetWizardLabel browse and select file
> ^!Set %filename%=^?{(T=O;)}
> ^!Set %goodquery%=^$GetMD5Text(^%filename%)$
> ^!Info ^%goodquery%
>
> here is an example of how I use it:
>
> http://www.thefrank.com/ntp
>
> any variance at all should generate a different MD5 checksum, even
> one that does not change the kb of the filesize.
>
> the MD5 checksum hash is also good to use with databases. use it to
> checksum new data with any existing old data to verify that you are
> not storing duplicate files under different names.
>
> regards,
>
> tf
>
> http://www.thefrank.com
>

#14395 From: "thefrank" <tf@...>
Date: Mon Nov 14, 2005 9:12 am
Subject: Re: MD5 checksum clip
thefrankwmx
Send Email Send Email
 
well then. yes. I was able to duplicate your error. thank you!

I have used MD5 before with good matches, and just moved on without
extensive testing. but I ran my own clip on my own file, and then
downloaded my own uploaded file to run my own clip again, to return a
different result.

now I am stumped. I am wondering if this discrepancy may have something
to do with zip? if this clip only hashes the filename, well then I feel
silly. but then why would it not hash the downloaded identical filename
to return the identical result?

hmmmm....sharper minds may prevail here.

perplexed,

tf

#14396 From: Alan C <acummingsus@...>
Date: Mon Nov 14, 2005 9:16 am
Subject: Re: [Clip] Re: MD5 checksum clip
acummingsus
Send Email Send Email
 
I guess it could be likened to a fingerprint.

http://www.linuxiso.org/viewdoc.php/verifyiso.html
<quote>
MD5's can be used to determine that the file or iso you downloaded is a
bit-for-bit copy of the remote file or iso.</quote>

http://www.gnu.org/software/coreutils/manual/html_chapter/coreutils_6.html#SEC26

On Linux, (man md5sum) I use the command:

md5sum my_dl_file.iso

to verify a Linux .iso file that I downloaded. At www or ftp site where the
.iso file is stored also exists a text file containing md5sums for any .iso
files that are on that site.

That command up there returns the "fingerprint" of the file that's on my
hard drive. Such fingerprint must match the fingerprint that's in the
mentioned text file at the remote site where I downloaded the .iso file
from. A match tells me that my file is ok that it's an exact copy of the
remote file that I downloaded.

Out of over hundreds of downloads, it has only been once that it did not
match which tell me my download is corrupt (I deleted it and re downloaded
and then the two fingerprints matches)

In that way, verifies authenticity versus a piece of the file is
missing/been_altered.

Alan.

On 11/13/05, rpdooling <rpdooling@...> wrote:
>
> Dear TF:
>
> I've never understood or used md5. Everytime I've tried it I get
> nonmatches. Like the number you have on your site is different than
> what I get when I run the below clip on the ColorPalettes.Zip file I
> downloaded from your site. Not only that, if I download it again, the
> result is yet a third different number.
>
> Also, doesn't your clip get the md5 result for a FILE not the text in
> a file? There are two different functions in the NoteTab utilities
> file. If there is a difference.
>
> Oh well,
>
> rpd
>
>


[Non-text portions of this message have been removed]

#14397 From: loro <loro-spam01-@...>
Date: Mon Nov 14, 2005 9:27 am
Subject: Re: [Clip] Re: MD5 checksum clip
yastupidhoo
Send Email Send Email
 
thefrank wrote:
>well then. yes. I was able to duplicate your error. thank you!
>
>I have used MD5 before with good matches, and just moved on without
>extensive testing. but I ran my own clip on my own file, and then
>downloaded my own uploaded file to run my own clip again, to return a
>different result.

Don't you, in your clip,  want ^$GetMD5File()$ rather than ^$GetMD5Text()$?
Still doesn't match the signature at your page though. Could you have used
^$GetMD5Text()$ when you produced that, too?

Lotta

#14398 From: "rpdooling" <rpdooling@...>
Date: Mon Nov 14, 2005 1:04 pm
Subject: [Clip] Re: MD5 checksum clip
rpdooling
Send Email Send Email
 
>>Could you have used ^$GetMD5Text()$ when you produced that, too?<<

I bet Lotta is right (as usual). Using the NoteTab clip for Get md5 of
FILE in the Utilities Library, I get the following result on both
verions of the file I downloaded from your site:

MD5 signature of "E:\Software Downloads\ColorPalates.zip":
93a44e9f04ca8156f98d0413f482965d

rd


--- In ntb-clips@yahoogroups.com, loro <loro-spam01-@t...> wrote:
>
> thefrank wrote:
> >well then. yes. I was able to duplicate your error. thank you!
> >
> >I have used MD5 before with good matches, and just moved on without
> >extensive testing. but I ran my own clip on my own file, and then
> >downloaded my own uploaded file to run my own clip again, to return a
> >different result.
>
> Don't you, in your clip,  want ^$GetMD5File()$ rather than
^$GetMD5Text()$?
> Still doesn't match the signature at your page though. Could you
have used
> ^$GetMD5Text()$ when you produced that, too?
>
> Lotta
>

#14399 From: "thefrank" <tf@...>
Date: Mon Nov 14, 2005 4:47 pm
Subject: MD5 checksum clip : Resolved
thefrankwmx
Send Email Send Email
 
yes. it seems that I used Text function and should have used File
function for the correct, and matching, MD5 checksum result.

^!ClearVariables
^!SetWizardTitle Get MD5
^!SetWizardLabel browse and select file
^!Set %filename%=^?{(T=O;)}
^!Set %goodquery%=^$GetMD5File(^%filename%)$
^!Info ^%goodquery%

I still think it is a good method, especially when used correctly ;)

also, I still feel silly.

what a great list this is. I still get the email digest, but have not
contributed much in the last 3 or 4 years. maybe I remember why now...

regards to all,

tf

#14400 From: "rpdooling" <rpdooling@...>
Date: Mon Nov 14, 2005 5:34 pm
Subject: Re: MD5 checksum clip : Resolved
rpdooling
Send Email Send Email
 
>>but have not contributed much in the last 3 or 4 years. maybe I
remember why now...<<

Oh, come on! Don't let feeling silly stop you. I learned about md5 by
monitoring the exchange. I'm glad you did it.

rd

--- In ntb-clips@yahoogroups.com, "thefrank" <tf@t...> wrote:
>
> yes. it seems that I used Text function and should have used File
> function for the correct, and matching, MD5 checksum result.
>
> ^!ClearVariables
> ^!SetWizardTitle Get MD5
> ^!SetWizardLabel browse and select file
> ^!Set %filename%=^?{(T=O;)}
> ^!Set %goodquery%=^$GetMD5File(^%filename%)$
> ^!Info ^%goodquery%
>
> I still think it is a good method, especially when used correctly ;)
>
> also, I still feel silly.
>
> what a great list this is. I still get the email digest, but have not
> contributed much in the last 3 or 4 years. maybe I remember why now...
>
> regards to all,
>
> tf
>

Messages 14371 - 14400 of 23787   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright Š 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help