|
Wednesday, January 12, 2005 |
TestMaker and Jython. A coworker pointed me to PushToTest's TestMaker, an open-source web app testing tool that generates test cases written in Jython.
Cool. I am going to spend some time over the next fgew weeks working
with this so expect more postings about it in the future.
TestMaker is a free open-source framework and utility for
building intelligent test agents to check Web-enabled applications and
Web Services for scalability, performance and functionality. TestMaker
is a 100% Java application and runs everywhere Java runs, including
Windows, Linux, Solaris, and Macintosh OS X. Requires Java 1.4.1 or
greater.
[All things Jythonic]
11:52:22 PM Google It!.
|
|
Write Your Own Mini Aggregator with Jython and Rome!. Rome
is a new java API for reading RSS and ATOM feeds. Here is a quick
demonstration of what you can do with it using Jython, the Java
Scripting Swiss Army Knife.
Ok, you will need to add both the latest build of Rome and JDOM to your classpath. Next fire up jython or if you like use the Jython Console which will make exploring the ROME api a little easier.
Here is the source code then of a simple aggregator written in jython.
from java.net import URL
from com.sun.syndication.feed.synd import SyndFeedI
from com.sun.syndication.io import SyndFeedInput
myUrl = URL('http://www.pycs.net/users/0000177/rss.xml')
input = SyndFeedInput()
feed = input.build(myUrl.openStream())
entries = feed.getEntries()
for post in entries:
title = post.getTitle()
link = post.getLink()
print """%s""" % (title, link)
When you run this, you will get a list of links pointing to the posts in the feed, in this case the feed for my main site. [All things Jythonic]
11:50:38 PM Google It!.
|
|
edittwiki - external editor tool for TWiki. Announcing edittwiki 0.1, an external editor launcher for the popular TWiki wiki. This is similar in spirit to the editMoin tool for MoinMoin
wikis. I wrote this in Jython and compiled into a java jar so it should
run on a wide set of operating systems. It features a configurable
editor setting so you can edit TWiki topics using your favourite editor
(including html editors) and works with TWiki installations that are
password secured.
This is the initial release, so please be gentle! and feel free to
provide feedback here or via email to etaekema-at-earthlink-dot-net. [All things Jythonic]
11:49:26 PM Google It!.
|
|
Scripting LDAP with Jython -- Queries. I've been playing with LDAP
directories from Jython and thought I should share a couple of useful
examples of what you can do. The first of these is a quick barebones
query example. Enjoy.
# Jython LDAP Example
from javax.naming import *
from java.util import *
from javax.naming.directory import *
# Credentials to access LDAP
user = "cn=master"
passwd = "password"
# Query starting point and query target
search_start = "ou=People,dc=Company,dc=com"
search_target = "uid=aUserID"
# Setup LDAP Context Options
settings = Hashtable()
settings.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory")
settings.put(Context.PROVIDER_URL, "ldap://localhost:389")
settings.put(Context.SECURITY_PRINCIPAL, user)
settings.put(Context.SECURITY_CREDENTIALS, passwd)
# Connect to LDAP Server
ctx = InitialDirContext(settings)
srch = SearchControls()
srch.setSearchScope(SearchControls.SUBTREE_SCOPE)
# Execute LDAP Search
results = ctx.search(search_start, search_target, srch )
#Display Search`
for result in results:
attributes = result.getAttributes()
names = []
for atr in attributes.getIDs():
names.append(str(atr))
for name in names:
print attributes.get(name)
[All things Jythonic]
11:47:56 PM Google It!.
|
|
Movable type and Python.
There are some python utilities that use Movable Type's XML-RPC
interface and thus allow you to view, post, delete and edit weblog
entries, and more... PyMT mtsend.py .. and of course, i just got a
really cool idea (to me... [blog-o-fobik]
9:28:54 PM Google It!.
|
|
OpenLaszlo [Edubloggers Links Feed]
The LPS compiles LZX applications into SWF bytecode for the Flash
Player, serves and caches these compiled applications to any Web
browser enabled with Flash 5 or later, and proxies application requests
for back-end XML data sources and web services. -- This has some very
interesting potential as flash players are becoming available for
smartphones and wireless PDA's -- BL
8:32:29 PM Google It!.
|
|
Calling all Moodlers! - Scoop.
Waiariki Institute of Technology will be playing host to an
international conference about Moodle software next month. Moodle, an
acronym for Modular Object-Oriented Dynamic Learning Environment, is a
learning management system used by many of New Zea [Online Learning Update]
3:31:57 PM Google It!.
|
|
MSN Search supports RSS.
This is very cool, and it's a differentiator for their search service
because Google doesn't do it, nor does Yahoo, Jeeves, etc. It's also
nice because they listened to us at the design review meeting late last
year in Redmond. It was nearly unanimous among the bloggers that RSS
support should be part of the search engine, both on the sending and
receiving sides. Now one half has been taken care of. I'm sure this
feature will gain wide use among bloggers. Very good. [Scripting News]
3:29:54 PM Google It!.
|
|
Videos Quick, Easy and Automatic.
A new program called Videora combines BitTorrent and RSS to
automatically download a computer user's favorite videos. It's another
application the entertainment companies will likely hate and consumers
will love. By Katie Dean. [Wired News]
3:26:13 PM Google It!.
|
|
© Copyright 2005 Bruce Landon.
|