Archive for March, 2005

A-ha haters come to Mice’s assistance

Thursday, March 17th, 2005

From this MetaFilter discussion:

I think A-ha’s video for “Take On Me” set a standard nobody’s ever gonna touch. posted by alumshubby at 4:46 PM PST on March 12 For pure evil, perhaps. posted by jonmc at 4:53 PM PST on March 12

My long-suffering co-worker Mice hates A-ha, yet Mrs. Mice loves A-Ha.

Myself, I love their video and “Take on Me”.

This discussion was about this video for the {electronica / square beat / something / huh / what-the-heck} artist M.I.A..

I heard her song “Pull up the people” by MIA yesterday on KSJS and it’s maddeningly addictive:

I got the bombs
to make
you blow
I got the beats that make ya go baaang

Interesting, but listen at your own risk - addictive!

The magic of imagination, Ed Emberley

Thursday, March 17th, 2005

When I was a boy in elementary school I read many great books:

  • Nate the Great by Marjorie Sharmat
  • The Soup Series (esp. Soup and Me) by Robert Newton Peck
  • The Ed Emberley Drawing Books

I may explore those first two points later, but recently I came across an article at BoingBoing where an enterprising creator was making clocks with featuring the characters of Ed Emberley.

Ed’s books are great. They teach young people without a lot of fine motor skill to draw cute yet real characters and to populate an entire world. My favorite was his Draw A World.

Ed’s joy spreading endavor continues in modern media at his website.

I enjoy “Two and a Half Men”

Friday, March 11th, 2005

Most of all for Chuck Lorre’s Vanity Cards at the end.

That’s a line from yesteryear’s music, no doubt the Social Bobcat would certainly recognize. It’s from Cypress Hill’s “Lick a Shot”. It was just shuffled to on the iPod.

It was the first record I bought that had a “gangsta” vibe. Even then CH aren’t really that gangsta.

I’ve opined that the gangsta genre ends with 50 Cent - but it’s his to take to its grave and I’ve really enjoyed his new release “The Massacre” aside from the horrible candy-pop “Candy Shop”.

Incidentally was he trying to make this song sound exactly like Lil’ Kim’s “Magic Stick” (on which he made a guest appearance?).

I’m still waiting for the new hip-hop though…

American Aesthetics, European Splendour

Monday, March 7th, 2005

My father and I have had a number of discussions about architecture in Europe versus architecture in the Empire. Here in the Empire our office buildings are downright ugly — even the buildings where the honchos are, the buildings are pretty blase. Yet the same corporation’s building in another country - especially Europe is usually quite impressive.

Take for example the Silicon Valley’s office parks or buildings (Intel, Nortel, NVidia, Juniper, Yahoo, AMD). The Ciscoland campus is basically a putty and teal series of boxes: buildings A-O, Buildings 1-22. The standout building, the one with the circular drive and 1 more floor than all the rest with the flagpoles is the executive building. Here it is:

cisco_building.jpg

As you can see, it’s nice…enough. The real standout feature is the beautiful Northern California sunrise which is even pretty good from my hole in the wall in Mountain View.

Now the UK building is a real symphony of glass and steel. Check this thing out:

Cisco UK 3.JPG

Photo courtesy of: Living in London

Nice, huh?

Likewise the Australian office is one of the big towers that, in the Asian tradition, has a huge liteboard display of the company logo. I hear the Japanese office is something out of “2001” etc.

As I said, my father and I have discussed this point quite a lot, he had experienced the same when working for the Oil and Gas Megalith he used to work for. He said that it boiled down to looking at the numbers, it was hard to justify to Senior management (who appealed to the fiduciary responsibility to the shareholders) that they chose to spend extra on a beautiful building versus simply a building where the work could get done. We chalked this up to the Puritain Work Ethic / Over-obsessive focus on the bottom line such that comfort and beauty are ‘needless extras’.

Based on this I suggested that: It’s all the same company, so the American shareholder would punish the American worker and demand they work away in nondescript , uninspired, uninspiring buildings while that same American shareholder was happy for the company to build beautiful buildings in other countries for foreign workers?

For me this discussion came down to a quote found in this Salon article which cited how Tony Judt differentiated European American production values:

“Consider a mug of American coffee,” he wrote. “It is found everywhere. It can be made by anyone. It is cheap — and refills are free. Being largely without flavor, it can be diluted to taste. What it lacks in allure it makes up in size. It is the most democratic method ever devised for introducing caffeine into human beings. Now, take a cup of Italian espresso. It requires expensive equipment. Price-to-volume ratio is outrageous, suggesting indifference to the consumer and ignorance of the market. The aesthetic satisfaction accessory to the beverage far outweighs its metabolic impact. It is not a drink; it is an artifact.”

I was interested in what a little bit of Perl would do to this statement. Perl, as a programming language, is very good at search and replace functions. For the non-speaker, suffice it to say that this construct: s,something,else,gi is the speaker’s way of saying “Replace something with else everywhere where something is found (i.e. globally, thus “g” at the end), indifferent to case (indifferently, thus “i” at the end).

So here was my first thought, cut and pasted from code:

    # We are no longer talking about coffee, but architecture.
    s,a\s+\w+\s+\w+\w+\s+(\w+)\s+\w+,an $1 office building,gi;
    s,(beverage|drink),building,gi;

Line one turns a (container) of (nationality) (coffee-beverage) into “an (that nationality) office building”

Line two turns “beverage or drink” into “building”.

In the next part of the program we do:

    # In this quote the functional purpose is coffee is to
    # deliver caffiene, the functional purpose of an office
    # building is to provide a workspace for humans

    s,caffeine,human,;
    s,metabolic impact,functional value,,;
    s,human\s+beings,workspaces,gi;

The # entries (called comments) should make pretty clear what goes on in that bracket.

I needed to add a command to print out the altered code.

Thus, fully assembled, the code looks like:

#!/usr/local/bin/perl

while (<STDIN>){

    # We are no longer talking about coffee, but architecture.
    s,a\s+\w+\s+\w+\w+\s+(\w+)\s+\w+,an $1 office building,gi;
    s,(beverage|drink),building,gi;

    # In this quote the functional purpose is coffee is to
    # deliver caffiene, the functional purpose of an office
    # building is to provide a workspace for humans

    s,caffeine,human,;
    s,metabolic impact,functional value,,;
    s,human\s+beings,workspaces,gi;

    print $_;
}

And the output, is actually quite sensible:

“Consider an American office building,” he wrote. “It is found everywhere. It can be made by anyone. It is cheap — and refills are free. Being largely without flavor, it can be diluted to taste. What it lacks in allure it makes up in size. It is the most democratic method ever devised for introducing human into workspaces. Now, take an Italian office building. It requires expensive equipment. Price-to-volume ratio is outrageous, suggesting indifference to the consumer and ignorance of the market. The aesthetic satisfaction accessory to the building far outweighs its functional value. It is not a building; it is an artifact.”

Paul Graham also notes that this tendency for building ugly buildings is also key, in his opinion, in understanding why The Empire is a great place to become wealthy. Because investors know that the money will be spent on R&D not Aeron chairs all around they are more comfortable in funding new initiatives, new initiatives create wealth and create the wealthy, a class of which most investors aspire to be members of.

Lisp problem solved

Friday, March 4th, 2005

There are many ways do skin a cat, but here’s how I handled the occurrences task…

Answer

>(occurrences '(a b a d a c d c a))
((A . 4) (C . 2) (D . 2) (B . 1))

See, it retuns the token (A, B, etc.) and how many times it occurred

Code

(defun occurrences (queue)
  (sort-count-pairs (scan-queue queue () () )
))

(defun scan-queue (aQueue aSearched aCount)
  (if (null (car aQueue))
      aCount
      (progn
    (if (member (car aQueue) aSearched)
        (scan-queue (cdr aQueue) aSearched aCount)
        (let ((scantoken (car aQueue)))
          (push scantoken aSearched)
          (push
           (count-token scantoken aQueue  0)
           aCount)
          (scan-queue (cdr aQueue) aSearched aCount))))))

(defun count-token (sToken aQ count)
  (if (null (car aQ))
    (cons count sToken)
      (progn
    (if (equal (car aQ) sToken )
        (setf count (+ count 1)))
    (count-token sToken (cdr aQ) count))))

(defun sort-count-pairs (pairs)
  (let ((sortcount
     (mapcar #'(lambda (x) (car x)) pairs)))
    (sort sortcount #'>)
    (mapcar #'(lambda (x)
        (let ((mypair (assoc x pairs)))
          (setf pairs (remove (assoc x pairs) pairs))
          (cons (cdr mypair) (car mypair)))) sortcount)))

Ah, the follies of youth…

Tuesday, March 1st, 2005

From the AP…

On the tapes, recorded over the course of the two years before Bush became the Republican presidential nominee in 2000, Bush discusses strategy for his first presidential run and appears to acknowledge past drug use. He says he would refuse to answer questions about using LSD, cocaine and marijuana because “I don’t want any kid doing what I tried to do 30 years ago.”

Nothing like the righteousness of the converted.