Skip to main content

Ralsina.Me — Roberto Alsina's website

Posts about programming (old posts, page 4)

And so does uqbar

It's bet­ter than I re­mem­ber. Spe­cial­ly be­cause the SF CVS ver­sion is new­er than all the copies I had on disk (I won­der how that hap­pened).

In fac­t, it has a nice trick to cre­ate er­ror di­alogs from any ex­cep­tion I am lift­ing right away for oth­er apps :-)

The on­ly prob­lem it does have is that python's url­lib and url­lib2 sup­port for FTP seems to suck.

You can't choose the user­name and pass­word?

Sailor (Guten­berg's main server) is picky about the pass­word you send, and ralsi­na@rober­to, which url­lib in­sist on us­ing (user­name@host­name) does­n't pass muster.

And ft­plib, which can do the right thing, does­n't let me give progress of the down­load, which would make the pro­gram aw­ful.

Oh, well.

Screenshot of Notty today

Since I up­load­ed Not­ty to Source­forge (get it from CVS), I thought it would be nice to show what it looks like nowa­days.

So here's a screen­shot. If that link does­n't work, try this one.

It is most­ly a work­ing ap­p, al­though still pret­ty ba­sic. You can use it, you can cre­ate notes, you can even ex­port them to HTML (work­ing fair­ly well, ex­cept for links to oth­er notes, which don't get fixed).

I am even us­ing it to doc­u­ment it­self (see doc­s/help.not­ty in the sources, it's a not­ty file)

Spe­cial­ly nice is Sil­verci­ty's code-block di­rec­tive, which you can see used in the screen­shot (look at the yel­low frag­men­t).

I'd say it is right now a pret­ty de­cent doc­u­men­ta­tion writ­ing tool, al­though the ed­i­tor com­po­nent is too fea­ture­less.

Neat stuff

This is a recipe at the Python Cook­Book show­ing how to add a new di­rec­tive to re­Struc­tured­Tex­t, called code-block, which syn­tax-high­lights the block!

I just im­ple­ment­ed it in Not­ty, and now you can have the neat­est code snip­pet­s. I did have to hack the out­put a fair bit since the dis­play­ing wid­get does­n´t sup­port <s­pan> (or CSS for that mat­ter), so I had to do mas­sive search-re­places on the out­put, to con­vert to <font>. But it took on­ly half an hour to do, since Sil­verCi­ty´s out­put is very reg­u­lar.

I think I will sug­gest this to Hugo for PyD­S, con­sid­er­ing the den­si­ty of pro­gram­mers among its users :-)

Whoa. Hits!

Looks like the pro­gram­ming tu­to­ri­al was well re­ceived. About 5000 hits in 12 hours :-)

To­day´s ran­ings:

Lat­er­al Opin­ion (link) 2355 SPE - Stani's Python Ed­i­tor (link) 86

If it con­tin­ues, Lat­er­al Opin­ion will reach 50K hits to­day. I´ll have a beer for that!

Rapid Application development using PyQt and Eric3 ... in realtime!

Now, this is not a tu­to­ri­al in the sense that you gonna learn how to do stuff.

How­ev­er, it may show you what is pos­si­ble!

So, hop in and en­ter the won­der­ful world of one evening of de­vel­op­ment in the com­pa­ny of PyQt, Er­ic3, and Python.


Contents © 2000-2023 Roberto Alsina