17
Jun 07

Two – Make It One – Week Holiday

Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: Two (Make It One) Week Holiday
Date: Sun, 17 Jun 07 17:34:21 GMT

Finally my two-week holiday period for this year
has arrived. Unfortunately my next two weeks off
holiday will have to be foreshortened to one week
because of professional duties (not only the Lisbon
elections coming up but also the portuguese EU
presidency). Oh well, I’ll have to use some of the
remaining days to go to Campus Party Portugal; damn..

http://campusparty.aeiou.pt/

So for the next 7 or 8 days there’ll be no posts
from me. I’m prohibited to go anywhere near any
piece of electronic equipment by both my wife and
the personnel (house rules) at Vila Lara.

http://www.sofitelvilalara.com/
http://www.accorthalassa.com/gb/hotel/thalasso-vilalara-portugal.shtml
http://maps.google.com/?ie=UTF8&t=k&om=1&ll=37.099243,-8.38142&spn=0.005904,0.007178&z=17

I’ll be either the small private beach, in front of the
big rock, or at the biggest of the 3 pools, top center.
Highly recommended place when you want to compress two
weeks rest into 7 days…

I am taking with me the usual load of Amazon ordered books,
which this time was:

“Crossing the Chasm”, Geoffrey Moore
“The Long Tail”, Chris Anderson
“Sceptical Essays”, Bertrand Russel
“Como Se Levanta Um Estado”, Oliveira Salazar
“Fooled by Randomness”, Nassim Taleb
“Hunters of Dune”, Brian Herbert
“Democratizing Innovation”, Von Hippel
“The Innovators Solution”, Clayton Christensen
“The Venture Capital Handbook”, Grave Hay & Peeters
“The Game Producer’s Handbook”, Dan Irish

Since the first two have already been read in this
past two weeks, its 8 books for 8 days; should be
doable…

— MV

PS – Meanwhile I had the time to get the 3rd issue of
*.pt out. Its at http://www.asterisco.pt/ as usual.
Still no post on the future of web development and
why both 3-tier and MVC should be considered harmful,
but in wont surely be this week…


10
Jun 07

Deranged One Hit Wonders

Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: Deranged One Hit Wonders
Date: Sun, 10 Jun 07 16:18:21 GMT

OK, OK, these 5 videos are neither “heavy” nor
“mental”. I guess that they fall into the “mentally
deranged” category: stuff so off and geeky that it
appeals to your “heavy mental” look for quirkyness.
These videos always put me in a good mood and make
me laugh my ass off…

Stakka Bo – Here We Go
http://www.youtube.com/watch?v=IQR9bw-4R08

Dee Lite – Groove Is In The Heart
http://www.youtube.com/watch?v=mKTCW4oxS6I

MC Hammer – Can’t Touch This
http://www.youtube.com/watch?v=EMzoBkaFxh4

B52s – Love Shack
http://www.youtube.com/watch?v=T8NhJNpQlsY

Right Said Fred – I’m Too Sexy
http://www.youtube.com/watch?v=ipZDG6__Zfc

— MV


10
Jun 07

Mental One Hit Wonders

Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: Mental One Hit Wonders
Date: Sun, 10 Jun 07 15:18:21 GMT

As counterpoint to the previous post, here’s
a sample of 5 one-hit wonders from the “mental”
side. I wouldnt call the videos themselves “mental”;
they’re basic early 80s stuff; nonetheless I still
find them great fun to listen to (not that I would
have or buy the albums… OK, I do have the Chess
musical CD and the ELO Time concept album….)

Murray Head – One Night In Bangkok
http://www.youtube.com/watch?v=NcCamcx_q3c

Pop Muzik – M
http://www.youtube.com/watch?v=1Lul7YCkrAQ

Patrick Hernandez – Born to be alive
http://www.youtube.com/watch?v=a-aI1Ch39ZU

Nick Straker Band – “A Walk In The Park”
http://www.youtube.com/watch?v=-wJMAg6jc1s

Electric Light Orchestra – Twilight
http://www.youtube.com/watch?v=hVkEHBbv4Fg

— MV


10
Jun 07

Heavy One Hit Wonders

Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: Heavy One Hit Wonders
Date: Sun, 10 Jun 07 15:18:21 GMT

Just thought I’d share with you 5 one-hit wonders
from the “heavy” side of the “heavy mental” personality
disorder. Basic, sleazy rock at its best, from bands
that have been forgotten after grunge, Nirvana and
Cobain destroyed the music industry leaving only hip hop
in its wake.

Danzig – Mother
http://www.youtube.com/watch?v=vgSn0SbQJQI

White Zombie – Thunder Kiss ’65
http://www.youtube.com/watch?v=0VELvq-faGk

Zodiac Mindwarp + The Love Reaction – Prime Mover
http://www.youtube.com/watch?v=mtnCcWOS7y8

Freak Of Nature – Rescue Me
http://www.youtube.com/watch?v=GaknfXHGYTQ

Terrorvision – Oblivion
http://www.youtube.com/watch?v=5RIlRhXXQjg

— MV


10
Jun 07

PHP2Py

Path: mv.asterisco.pt!mvalente
From: mvale…@ruido-visual.pt (Mario Valente)
Newsgroups: mv
Subject: PHP2Py
Date: Sun, 10 Jun 07 01:04:21 GMT

If I had the time and patience of days gone by, I would
get my photocopied Aho compiler book [1] from some closet or
box laying about (I dont know which), get my skills up on
XSLT (which I hate from back experience [2]) and use the
PHC [3] PHP compiler option of outputting AST trees [4]
in XML format to create PHP2PY, a PHP-to-Python translator,
using XSLT to transform the PHC-created AST XML tree
into Python source code.

[1]
http://en.wikipedia.org/wiki/Principles_of_Compiler_Design
http://en.wikipedia.org/wiki/Compilers:_Principles%2C_Techniques%2C_and_Tools

[2]
http://www.gildot.org/articles/04/05/21/1654202.shtml#10

[3]
http://www.phpcompiler.org/doc/runningphc.html#xml

[4]
http://en.wikipedia.org/wiki/Abstract_syntax_tree

As it is, downloading, installing and running PHC to
look at the generated XML for a simple “Hello World” and
putting together a proof-of-concept translator will have
to do to satisfy my hacking thirst…

— MV

PS – If you want to try it out, go get PHC, use it to
generate an XML AST of <? echo “Hello world!”; ?> into
a file called hello.xml. Processing it with the following
Python script should get you this:

#PHP2PY generated
print ‘Hello world!’

8<—————————————————<8
import xml.parsers.expat

InMethod=0
InString=0
MethodCall=0
StringValue=0

def start_element(name, attrs):
global InMethod, InString, MethodCall, StringValue

#print 'Start element:', name, attrs
if name == 'Token_method_name':
InMethod=1
if name == 'Token_string':
InString=1

if name == 'value' and InMethod:
MethodCall=1
if name == 'value' and InString:
StringValue=1

def end_element(name):
global InMethod, InString, MethodCall, StringValue

#print 'End element:', name
if name == 'Token_method_name':
InMethod=0
if name == 'Token_string':
InString=0

def char_data(data):
global InMethod, InString, MethodCall, StringValue

if MethodCall:
if data == "%run%": print "#PHP2PY generated"
if data == "echo": print "print",
MethodCall=0
if StringValue:
print "'"+data+"'"
StringValue=0

p = xml.parsers.expat.ParserCreate()

p.StartElementHandler = start_element
p.EndElementHandler = end_element
p.CharacterDataHandler = char_data

hellofile = open("hello.xml")
p.ParseFile(hellofile)
hellofile.close()