I need to get the PID of a running Java process, in this case Glassfish 3 to see if it is running before I run some asadmin commands.
26306
Looks like Maven 2 is pretty much inline with the generic Ant based build system I have been using for the past 8 years. So I am going to take the plunge and start using Maven 2 so I don't have to keep maintaining my system. Less time maintaining a build system means more time writing code that actually does something unique.
I am looking at you IE with your non-standard EOT font format. I added an @font-face declaration for my favorite monospace programming font. All Firefox 3.5+, Safari 3.1+, Opera 10+ the latest version of Chrome should now see all the formatted code blocks in the font Inconsolata instead of the default monospace which is what IE will fall back to since I am not going to go to the trouble of support the EOT font format. Sorry IE users complain to Microsoft, they don't even support the format they bought from Apple in their war against Adobe and PostScript fonts!.
Here is a little code snippet on how to get a list of all the Views from all the Design Documents from all the Databases in a CouchDB instance with couchdbkit.
server = Server()
dbs = server.all_dbs()
for dbname in dbs:
db = server.get_or_create_db(dbname)
result = db.all_docs(startkey='_design', endkey='_design0')
for doc in result.all():
designdoc = db.get(doc['id'])
if 'views' in designdoc:
for view in designdoc['views']:
print '%s/%s/_view/%s' % (dbname, designdoc['_id'], view)