Dec 07

The Alphanum Algorithm in Python

Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: The Alphanum Algorithm in Python
Date: Wed, 12 Dec 07 01:12:21 GMT

And, in a heroic session of coding (the last couple of
hours really; yes, it took me that long, goddam regular
expressions…) the geezer comes up with the Python
version of the Alphanum algorithm…

The Alphanum Algorithm

Alphanum Algorithm in Python

Yay for me, I still remember how to code….

— MV

PS – Yes, I later found the solution below but I had fun meanwhile…

def safeint(x):
return int(x)
except ValueError:
return x
data.sort(key=lambda x: map(safeint, re.findall(“\d+|\D+”, x)))

Dec 07


Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: 6am
Date: Mon, 10 Dec 07 06:16:21 GMT

“Six o’clock in the morning
Still sitting here pouring
The drinks till they’re gone”

Enuff ‘Z Nuff – Fly High Michelle

“And though we still stay up all night
The mornings aren’t quite as bright

And who’s to say what its about
When John Wayne caught the last train out
And Spock and Kirk have had enough
And no one’s left to beam me up

Got to get back
Got to get back
I never meant to take it this far”

Jon Oliva (Savatage) – A Little Too Far

— MV

Dec 07

More Than Words

Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: More Than Words
Date: Mon, 10 Dec 07 05:46:21 GMT

Trolling the web and YouTube for stuff (what else to
do when you’re on an insomnia trend again?) I just
found out that Extreme have reunited and will be going
on tour and recording a new album during 2008.


Like they say in the press release, the world is in
dire need of serious rock n roll (instead of angry depressive
grunge remakes and stupid repetitive hip hop).

This post’s title was just to fool you: no mushy ballads
and no populist abuse of the portuguese flag in sight…

Extreme – Mutha (Don’t Wanna Go To School Today)

Extreme – Get The Funk Out

Extreme – Decadence Dance

— MV

Dec 07

RESTful DB and App Servers

Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: RESTful DB and App Servers
Date: Sun, 09 Dec 07 19:40:21 GMT

Like I said before, most of the week’s linkage
has had to do with CouchDB or, generally speaking,
to do with JSON-formatted REST-accessed database and
application servers.


CouchDB is sure fun to use, but its Erlang dependency just
pisses me off.


The way that I’ve been thinking about a new web development
framework indeed involves a REST interface and JSON or XML
formatted data. But I just think that a) you might as well
standardise the programming languague used at all tiers (and
that means Javascript) and b) you should have REST/JSON as
interface not only to the DB tier but also to the logic tier.

Sure enough there are some alternatives if you want to go
that way.

Basura DB (Python based JSON/REST DB implementation)

Persevere (Java based)

Robaccia (Python based web framework includes a RESTful JSON server)


DBSlayer (HTTP/JSON interface for MySQL databases)

But aditionally to databases, I’m thinking more in line with
the proposed RADAR architecture of having the REST interface
also available for the app server. There arent as many options

The RADAR Architecture

Naked Objects


And sure enough all of the above is typically Java-based (yuck!),
with some other languages thrown in (Python, Erlang), but none
goes all the way and standardises on Javascript as the implementation
language and the glue language. Apparently I am not the only one
considering this idea…

Alt Framework

Simile’s Exhibit Framework

— MV

Dec 07

Zappa: Heavy Mental

Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: Zappa: Heavy Mental
Date: Sat, 08 Dec 07 16:07:21 GMT

“Flakes”, a song on Frank Zappa’s Sheik Yerbouti album,
contains a Dylan parody, with guitarist Adrian Belew
doing the Dylan “voice”.


I was looking out on YouTube to see if there was
some video for Bob Dylan’s impersonation in one of
Frank Zappa’s songs when I found a bunch of stuff
both from Frank Zappa, Dweezil Zappa (son) and
Moon Unit Zappa (daughter) that is the perfect
example that you can have heavy and mental in the
same setting… Some of the videos is stuff that I
hadnt seen in 20 years…

Frank Zappa – Flakes+Broken Hearts are for Assholes
http://www.youtube.com/watch?v=FBPlvuSisdg (with Steve Vai on guitar)

Frank and Dweezil Zappa — Sharleena (live) (“Battlestar Galactica?!?”)
http://www.youtube.com/watch?v=Z1c39Hi8SLI (THE DWEEZ!)

Moon Unit Zappa – Valley Girl (“Its like SO bitchen!!”)
http://www.youtube.com/watch?v=9eEvLzoSVsw (with lyrics)

Dweezil + Moon Zappa – Let’s Talk About It

Dweezil Zappa – My Guitar Wants to Kill Your Mama
http://www.youtube.com/watch?v=3RfAmdTa4W8 (“No Redeeming Social Value!”)

— MV