Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

README: Tcl-URL! - the weekly guide to Tcl resources

1 view
Skip to first unread message

Cameron Laird

unread,
Aug 24, 1998, 3:00:00 AM8/24/98
to
Coming up soon: news of the Tcl/Tk Consortium's CD-ROM project.

Monday, August 24 is the last day for early registra-
tion savings for the annual Tcl/Tk Conference (September
14-18 in San Diego)
http://www.usenix.org/events/tcl98/

A couple of threads carefully detail Unix realities per-
tinent far beyond just the Tcl community. Thanks first
to John Gotts for his tutorial on what to do when con-
fronted with a Unix application that dumps core
http://x9.dejanews.com/getdoc.xp?AN=380868726
Nikola Miljkovic and Jens-Uwe Mager describe the vagaries
of dynamic linking, particularly with AIX
http://x3.dejanews.com/getdoc.xp?AN=382694639

Cary D. Renzema explains the benefit to readers of the
prodigious work he has done in indexing and transforming
into PostScript all the manual pages
http://x13.dejanews.com/getdoc.xp?AN=383198105
In that same thread, Tom Phelps advertises his TkMan
convincingly
http://x13.dejanews.com/getdoc.xp?AN=383156610

Wilson Wong and Victor Wagner collaborate to provide a
nice introduction to automation of a TN3270 interface
http://x7.dejanews.com/getdoc.xp?AN=383171362

Eric Galluzo escorts the theme of textual modularization
through a swift tour of source and package, leaving the
reader on the threshold of namespaces
http://x8.dejanews.com/getdoc.xp?AN=381261220

Matt Berney gently opens yet another expression of the
answer to the perennial "how do I put together C/Tk/...?"
question
http://x10.dejanews.com/getdoc.xp?AN=381608477

Scriptics issues its almost-weekly update of TclPro
http://x4.dejanews.com/getdoc.xp?AN=381326549


Everything you want is probably one or two clicks away in these pages:

The "Welcome to comp.lang.tcl" message by Andreas Kupries
http://www.westend.com/~kupries/c.l.t.welcome.html

Larry Virden maintains a comp.lang.tcl FAQ launcher
http://www.teraform.com/~lvirden/tcl-faq/

Scriptics maintains a highly organized Tcl resource center
http://www.scriptics.com/resource/

NeoSoft has a comp.lang.tcl contributed sources archive
http://www.neosoft.com/tcl/contributed-software/

Cameron Laird tracks many Tcl/Tk references of interest
http://starbase.neosoft.com/~claird/comp.lang.tcl/tcl.html

Tcl/Tk Consortium can search comp.lang.tcl and c.l.t.announce
http://www.tclconsortium.org/resources/

Cetus Links maintains a Tcl/Tk page with verified links
http://www.cetus-links.org/oo_tcl_tk.html

Findmail archives comp.lang.tcl.announce posts
http://www.findmail.com/list/tcl_announce/

A new resource center, maintained by UNIFIX
http://www.unifix-online.com/tcltk/resources.html
(In case of frames problems, use
http://www.unifix-online.com/ and go to Tcl/Tk Section)

Links2Go is a new semi-automated link collection; it's impressive
what AI can generate
http://www.links2go.com/topic/TCL/TK

Previous - (U)se the (R)esource, (L)uke! - messages are listed here:
http://www.dejanews.com/dnquery.xp?QRY=~g%20comp.lang.tcl%20Tcl-URL%21
or
http://www.altavista.digital.com/cgi-bin/query?pg=q&what=news&
text=yes&q=%2B%22comp.lang.tcl%22+%2B%22Tcl-URL%21%22&search=Search
or
http://www.reference.com/cgi-bin/pn/go.py?search=advanced&
querytext=&choice=Search&subj=Tcl-URL&name=&login=&host=&
organization=&groups=&startmonth=May&startday=9&startyear=
1998&endmonth=Dec&endday=19&endyear=1998&verbosity=Terse&
ranking=Relevance&choice=Search

Suggestions/corrections for next week's posting are always welcome.

To receive a new issue of this posting in e-mail each Monday morning,
ask <cla...@neosoft.com> to subscribe.


-- Jean-Claude and Cameron
--

Cameron Laird http://starbase.neosoft.com/~claird/home.html
cla...@NeoSoft.com +1 713 996 8546 FAX

Cameron Laird

unread,
Aug 26, 1998, 3:00:00 AM8/26/98
to
Status report: as promised, I'm now sending out copies of the
weekly "Tcl-URL!" summary each Monday morning to a list of
subscribers. That's working out fine, I believe (although
they're generally a quiet, very business-like group, with little
to say).

Here's the bad news: my ISP is having weird, annoying NetNews
outages. For example, I posted article
<6rrdd3$66c$1...@Starbase.NeoSoft.COM> in a timely fashion on Monday
morning, but it appears to have been swallowed up somewhere along
the way to the outside world. I apologize to c.l.t for this; as
a *reader* of "README: Tcl-URL!", I know that a significant part
of its value lies in being able to count on it. Apparently that
won't be possible for a while.

So:
1. A copy of this week's edition follows below.
2. A few words on subscribing for e-mail delivery
appear at the tail of this message.
3. I'm working with my ISP to solve the problem.
4. Does anyone know of a conveniently automatable
way to inject a posting into the Usenet cloud?
I've never looked for one, as I assumed the em-
phasis at DejaNews et al. would be on filtering
out spam, not on facilitating legitimate peri-
odic postings.

Alexandre Ferrieux

unread,
Aug 26, 1998, 3:00:00 AM8/26/98
to
Cameron Laird wrote:
>
> 4. Does anyone know of a conveniently automatable
> way to inject a posting into the Usenet cloud?

If you have access to an NNTP server allowing postings, talking NNTP to
it amounts to a couple of "puts" (see the RFC, it's readable :).
My naive belief was that there were *public* ones around; tell me if I'm
wrong.

-Alex

dhag...@my-dejanews.com

unread,
Aug 27, 1998, 3:00:00 AM8/27/98
to
In article <6s0t0c$ff7$1...@Starbase.NeoSoft.COM>,

cla...@Starbase.NeoSoft.COM (Cameron Laird) wrote:
> 4. Does anyone know of a conveniently automatable
> way to inject a posting into the Usenet cloud?
> I've never looked for one, as I assumed the em-
> phasis at DejaNews et al. would be on filtering
> out spam, not on facilitating legitimate peri-
> odic postings.

I tried the following to use Tcl's http package to post to DejaNews's
web postings page, but it doesn't seem to work successfully -- it
returns a "welcome to DejaNews" of the "your posting will show
up in a couple hours" that I'd usually expect. I'll have to do
some snooping and see if I can see exactly what POST variables I'm
missing. In the meantime, here's the script that will try to
post to alt.test from a "posting.txt" file:

#!/bin/sh
# \
exec tclsh "$0" ${1+"$@"}
package require http

proc readFile {filename} {
set fh [open $filename r]
set buf [read $fh]
close $fh
return $buf
}
proc printResults {token} {
upvar #0 $token state

foreach v [lsort [array names state]] {
puts "$v: [set state($v)]"
}
}

set postto http://www.dejanews.com/post.xp
set postvalues [list \
[list FR "d.j.h...@acm.org"] \
[list NG "alt.test"] \
[list SUB "Test Number 1"] \
[list ECC ""] \
[list RTO ""] \
[list ORG "Deja News - The Leader in Internet Discussion"] \
[list OH ""] \
[list type "quick"] \
[list SP ""] \
[list SCC ""] \
[list SHOWNOTIF "n"] \
[list DOSEND "Send (no preview)"] \
[list REFS ""] \
[list SET "SomeWickedLongHexadecimalString"] \
[list mydn_email "dhag...@my-dejanews.com"] \
[list email "d.j.h...@acm.org"] \
[list BD [read_file "posting.txt"]] \
]

http::config -proxyhost proxy.glatmos.com -proxyport 8080
set post_string [eval [concat http::formatQuery $postvalues]]

set token [http::geturl $postto -query \
[eval [concat http::formatQuery $postvalues]]]
http::wait $token
printResults $token

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum

d.j.h...@acm.org

unread,
Aug 28, 1998, 3:00:00 AM8/28/98
to
In article <6s0t0c$ff7$1...@Starbase.NeoSoft.COM>,
cla...@Starbase.NeoSoft.COM (Cameron Laird) wrote:
> 4. Does anyone know of a conveniently automatable
> way to inject a posting into the Usenet cloud?

UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE

I think I found a way to automate posting a file via DejaNews.
It requires a valid ~/.netscape/cookies file that has a recent
update (looks like there's some timestamp to expire the
.dejanews.com...DNREG cookie).

You'll want to set up the stuff down in the CONFIGURATION
PARAMETERS section. You also may want to add some form of
error checking...

#!/bin/sh
# \
exec tclsh "$0" ${1+"$@"}
package require http

if {!( ($argc == 3) || ($argc == 4) )} {
puts stderr "Usage:\n\n\t\
$argv0 newsgroup subject filename \[outfilename\]\n"
exit 1
}
set newsgroup [lindex $argv 0]
set subject [lindex $argv 1]
set postfile [lindex $argv 2]
if {$argc == 4} {
set outfile [lindex $argv 3]
} else {
set outfile "$postfile.out.html"
}

#
# PROCEDURES
#


proc readFile {filename} {
set fh [open $filename r]
set buf [read $fh]
close $fh
return $buf
}
proc printResults {token} {
upvar #0 $token state

foreach v [lsort [array names state]] {

if {[string match -* $v]} {
continue
}
puts "$v: [set state($v)]"
}
}
proc readCookie {host cname} {
set fh [open ~/.netscape/cookies r]
while {[gets $fh ln] != -1} {
if {(0 == [string compare $host [lindex $ln 0]]) &&
(0 == [string compare $cname [lindex $ln 5]])} {
return [lindex $ln 6]
}
}
error "Failed to find cookie $cname for host $host"
}

#
# CONFIGURATION PARAMETERS
#
set postto http://www.dejanews.com/post.xp
set dejanews_email dhag...@my-dejanews.com
set personal_email d.j.h...@acm.org
set proxyhost mago ;# comment out these 2 lines
set proxyport 8080 ;# for direct Internet post.
set newsgroup alt.test
set cookie "DNREG=[readCookie .dejanews.com DNREG]"

#
# BODY
#
set headervalues [list \
Referer "$postto?NG=$newsgroup" \
Cookie $cookie]

set postvalues [list \
FR $personal_email \
NG $newsgroup \
SUB $subject \
ECC "" \
RTO "" \
ORG "Deja News - The Leader in Internet Discussion" \
OH "" \
type "quick" \
SHOWNOTIF "n" \
BD [readFile $postfile] \
DOSEND "Send (no preview)" \
REFS "" \
mydn_email $dejanews_email \
email $personal_email \
]

if {[info exists proxyhost] && [info exists proxyport]} {
http::config -proxyhost $proxyhost -proxyport $proxyport


}
set post_string [eval [concat http::formatQuery $postvalues]]

set ofh [open $outfile w]
set query [eval [concat http::formatQuery $postvalues]]
set token [http::geturl $postto -channel $ofh \
-headers $headervalues -query $query]


http::wait $token
printResults $token

puts "Results saved in output file: $outfile"
exit 0

lvi...@cas.org

unread,
Aug 29, 1998, 3:00:00 AM8/29/98
to

There are at least 4 Tk based NNTP clients listed in
<URL:http://www.teraform.com/%7Elvirden/tcl-faq/part4.html>. It seems like
one could take out the NNTP portions of these and turn it into an extension.
Or just look at Pnews from trn and convert it from shell into tcl...
--
<URL:mailto:lvi...@cas.org> Quote: In heaven, there is no panic,
<*> O- <URL:http://www.teraform.com/%7Elvirden/> only planning.
Unless explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.

Cameron Laird

unread,
Aug 31, 1998, 3:00:00 AM8/31/98
to
I fear that a market for a digest of these digests will develop
before I learn on my own how best to abbreviate them.

Tcl is one of the four candidates OMG is considering
as the official language for scripting CORBA
http://www.omg.org/library/schedule/CORBA_Scripting_Language_RFP.htm
ftp://ftp.omg.org/pub/docs/orbos/98-07-02.pdf

Stefaan A Eeckels helps Jeremy Yabrow slash the CPU time
of a critical operation from 18 minutes to a few seconds
with a simple application of an idea that came from read-
ing sources
http://x3.dejanews.com/getdoc.xp?AN=386144332

The topic of GUI builders vs. programmatic interface
construction fascinates me, particularly when informed
by concrete examples and experiments. That's what
Scott Raney, Bryan Oakley, Donal K. Fellow, and several
others contribute in threads most cogently summarized
in
http://x7.dejanews.com/getdoc.xp?AN=383106025
http://x8.dejanews.com/getdoc.xp?AN=384877188
Of course, with Tcl one can have *both* GUI building and
textual rendering ...

"library" is wickedly polysemous, and a particular trial
for those just beginning programming. Larry Virden method-
ically lays out the key concepts in
http://x11.dejanews.com/getdoc.xp?AN=383378927

JStrack is a Tcl/Tk freeware hurricane tracking program
http://x7.dejanews.com/getdoc.xp?AN=384864411

What's good style with namespaces? George A. Howlett
illustrates that there is *no* good style for some of
what one wants to write
http://x10.dejanews.com/getdoc.xp?AN=384347779
Jim Ingham and others echo forms of this. Eric Galluzzo
answers a different question with a muscular explanation
of his intelligent coding practice
http://x11.dejanews.com/getdoc.xp?AN=385483615
Eric pulls the same trick of gratuitously answering a
more interesting question than the one asked, in outlining
a drag-and-drop implemenation
http://x11.dejanews.com/getdoc.xp?AN=383162350

Beast combines the capabilities of Scotty and Expect, to
make a powerful network and system administration package
that simplifies jobs that $100,000 commercial products
don't seem to do
http://x3.dejanews.com/getdoc.xp?AN=384833033
Keep an eye on Ian Jarrett's Web site for example appli-
cations that he expects to make available over the coming
weeks

"Virtuous cycle" is the trope I use as an antonym of
"vicious cycle". Mike Tiller, for example, contributes a
careful, detailed report of his already-deep experience
with TclPro--and Melissa Hirschl follows with illuminating
replies and plans that make clear how seriously Scriptics
takes user feedback
http://x12.dejanews.com/getdoc.xp?AN=383688500

Both command lines and command lists sometimes look
like "... -flag1 value1 -flag2 value2 ..." Matt Gushee
hints at the slick way to parse these
http://x7.dejanews.com/getdoc.xp?AN=382605695

John Ousterhout solicits comments on the future direction
of Tcl
http://x12.dejanews.com/getdoc.xp?AN=385816023

comp.lang.tcl.announce is back online, and includes several
important announcements which only lack of space precludes
detailing here.

Cameron Laird

unread,
Sep 3, 1998, 3:00:00 AM9/3/98
to
In article <6sdau5$8dl$1...@Starbase.NeoSoft.COM>,

Cameron Laird <cla...@Starbase.NeoSoft.COM> wrote:
>I fear that a market for a digest of these digests will develop
>before I learn on my own how best to abbreviate them.
.
.
.

>Suggestions/corrections for next week's posting are always welcome.
>
>To receive a new issue of this posting in e-mail each Monday morning,
>ask <cla...@neosoft.com> to subscribe.
.
.
.
A correspondent wrote
One suggestion if you're going to continue to post to
newsgroup(s) in addition to distributing via email:
vary the "Subject" header by inserting a date.
Rationale: some users (like me) use a threaded
newsreader and archive infrequently. With no
"Subject" variations, new issues become threaded
with old ones. Since I don't scan the whole list of
headers each day, I was missing most of the issues
of RT-U.
How does that sound to others?
--

Cameron Laird http://starbase.neosoft.com/~claird/home.html
cla...@NeoSoft.com +1 281 996 8546 FAX

Heribert Dahms

unread,
Sep 3, 1998, 3:00:00 AM9/3/98
to
In <6smjcl$qs5$1...@Starbase.NeoSoft.COM> cla...@Starbase.NeoSoft.COM
(Cameron Laird) writes:

: A correspondent wrote


: One suggestion if you're going to continue to post to
: newsgroup(s) in addition to distributing via email:
: vary the "Subject" header by inserting a date.
: Rationale: some users (like me) use a threaded
: newsreader and archive infrequently. With no
: "Subject" variations, new issues become threaded
: with old ones. Since I don't scan the whole list of
: headers each day, I was missing most of the issues
: of RT-U.
: How does that sound to others?

To me it sounds wrong. AFAIK a threaded newsreader isn't simply sorting
by subject, but rather using msg-IDs according to the References-Header.


Bye, Heribert (da...@ifk20.mach.uni-karlsruhe.de)

Cameron Laird

unread,
Sep 4, 1998, 3:00:00 AM9/4/98
to
In article <6snadt$5fm$1...@nz12.rz.uni-karlsruhe.de>,
Heribert Dahms <DA...@ifk20.mach.uni-karlsruhe.de> wrote:
.
.
.

>To me it sounds wrong. AFAIK a threaded newsreader isn't simply sorting
>by subject, but rather using msg-IDs according to the References-Header.
.
.
.
'Would be sensible, wouldn't it? I have good
evidence that there are readers with every
combination of threading algorithm suggested
by our little scheme: no threading; threading
by ID; threading by subject; and threading by
*both* ID and subject (always with that prece-
dence?). Perhaps a Usenet wiz can detail the
realities.
--

Cameron Laird http://starbase.neosoft.com/~claird/home.html
cla...@NeoSoft.com +1 281 996 8546 FAX

0 new messages