Older blog entries for wspace (starting at number 4)

Ok, I am curious.

This is a test. What happens if I already did send a diary entry today via Send?

The next days I will be working on a paper about component models in an extended subset of UML. After that we have planned a tool for conversion of XMI to PVS, and I have to write a report with the plan. That will keep me busy for a while!

6 Apr 2003 (updated 6 Apr 2003 at 19:25 UTC) »

How do you add entries to your Advogato diary?

I like to be able to write diary entries with my favorite text editor (gvim) and store them in a file. With the Python script below in my CGI directory, called todiary.py, I can now send an Advogato diary entry from anywhere, via my Send Entry page.

You can use that Send Entry page too, I do not try to steal passwords :-) But of course you can also just copy the HTML there and the Python CGI program below to your own site.

Once I have a diary entry I can edit it with the "Edit" button Advogato supplies. But I did not find a way to add a new diary entry. Is it even there?

import cgi
import sys 
sys.stderr = sys.stdout    # errors to browser
print "Content-type: text/plain"
print
# Get cgi parameters, Python Cookbook recipe 11.3.
fieldStorage = cgi.FieldStorage()
params = {}
for key in fieldStorage.keys():
    params[key] = fieldStorage[key].value
diaryEntryString = params['yourfile']
name = params['name']
pw = params['pw']
import xmlrpclib
server = xmlrpclib.Server("http://www.advogato.org/XMLRPC")
cookie = server.authenticate(name, pw)
diary = server.diary
diary.set(cookie, -1, diaryEntryString)
print 'Sending this to you Advogato Diary:'
print '-----------------------------------'
print diaryEntryString
print 'number of diary entries is now: %s' % diary.len(name)

5 Apr 2003 (updated 5 Apr 2003 at 14:28 UTC) »

I made an overview of what we can do with the HTML tags: The following HTML is accepted... a (hyperlink works normally with href attribute?)
i italic
b bold
tt true type

    ol ordered list?
  1. li list item?

    ul unordered list?
  • li list item?

  • li standalone list item possible?

    p paragraph

    div for combining with css etc.

    strong same as bold?
    em same as italic?
    cite Your citation goes here.
    blockquote Your blockquote goes here.


    br
     
         pre  same as tt?
     

    As you can see I don't know how to use these:

    dl

    dt

    dd

    <person> person </person>
    <wiki> wiki </wiki>
    proj
    project

  • 5 Apr 2003 (updated 5 Apr 2003 at 13:42 UTC) »

    To my surprise I found this Advogate XMLRPC interface for diaries on the advogato site. What a fun idea!

    New Advogato Features

    New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

    Keep up with the latest Advogato features by reading the Advogato status blog.

    If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!