DBW

Darjeeling, Bergamot and Walnuts

17.6.10

MechaDuck



Reductionism: Descartes held that non-human animals could be reductively explained as automata — De homines 1662.

26.5.10

Releasing the Qi

RE: last email

Go for it dude. Would be happy to hear you'd be happy, in your Lamborghini or just doing whatever ...

You are a clever guy, I always saw that ... but emotionally you are very unstable, no wonder considering all the shit you've been through.

Still, one week you abuse me like I'm a piece of shit, like u'd stab me in the back first chance you got, the next week you abuse me like I'm the only friend you have who can help you, and if I don't let you come visit and do detox for a month and take care of you like you my own kid you gonna die and it'll be my fault.

Anyway, as a friend, I can't say "yeah let's do a business, buddy" cuz then someday u'd distrust me I only did it for the money. Use your model, start your own business and make a ton of money and start a family or move to Australia or do whatever makes you happy.

And when you're a big fat genius, please have pity on me in your time of glory that I couldn't walk your road, and please don't begrudge me that in your time of need I couldn't help you as you wanted.

peace and love, e.

The Great David Hume on Truth and Human Nature

For if truth be at all within the reach of human capacity, 'tis certain it must lie very deep and abstruse; and to hope we shall arrive at it without the utmost pains must certainly be esteemed sufficiently vain and presumptuous.

-- David Hume, A Treatise of Human Nature

5.5.10

Cranberry-Feta Meatballs

For my own remembrance, what was cooking tonight and will be again on some occasion in the near future ;-)

In a bowl combine:

1 tsp - 1 tbsp fresh rosemary finely chopped
1 tsp - 1 tbsp chives finely chopped
1 medium sized onion finely chopped
1 tsp - 1 tbsp oregano
2 cloves organic garlic
90g feta cheese

Note: Pre-heat a teflon frypan to "5 of 9" setting with 4 tbsp rapseed, sunflower, or olive oil.

Don't stop adding! Keep adding, there's more! (to that same bowl):

1/3 cup dried cranberries, diced
5 grinds of pepper
500g organic ground beef

Meatballs need to be salty, so add about 2 tsp of salt, or let's say the meat forms a 20cmx20cm area, then about 20 salt crystals per cm^2. Thats how I estimate it: by crystals per cm^2.

Massage well. Form into ~8 balls about the size of a kiwi, slightly flatten, and place in the pan.

Drop 3 drops of Worcestershire sauce on top of each ball.

Cover and let cook ~8-10 min.

Add 3 tbsp red wine to the juice, flip the balls and give at least 30sec for sauce to return to boil, then moisten the balls by spooning the wined juice on them.

Cover and cook another 8-10 min.

With a total of 8 balls, serves 4 with 2 balls each.

Serve with Spaetzle or Tagliatelle larghe covered with diced parsley and walnut oil, and steamed vegetables (zucchini, carrot, cauliflower, green asperagus.

Of and I forgot to mention, you need to add to the above:

1 splash of darjeeling
1 mash of bergamot
1 dash of walnuts

-- (c) 2010 DBW, all rights reserved.

28.4.10

May you build a ladder to the stars and climb on every rung, and may you stay ...

Forever Young

Words and music Bob Dylan
Released on Planet Waves (1974) and in an early demo version on Biograph (1985)
Tabbed by Eyolf Østrem
Album version I (slow):

D

        D
May God bless and keep you always
         F#m/c#
May your wishes all come true
        Em/b
May you always do for others
        G             D
And let others do for you
        D
May you build a ladder to the stars
    F#m/c#
And climb on every rung
        Em   A(sus4-A) D
May you stay    forever young
        A         Bm
Forever young, forever young
        D   A        D
May you stay forever young.

May you grow up to be righteous
May you grow up to be true
May you always know the truth
And see the lights surrounding you
May you always be courageous
Stand upright and be strong
May you stay forever young
Forever young, forever young
May you stay forever young.

May your hands always be busy
May your feet always be swift
May you have a strong foundation
When the winds of changes shift
May your heart always be joyful
And may your song always be sung
May you stay forever young
Forever young, forever young
May you stay forever young.

Source: http://dylanchords.info/14_planetwaves/forever_young.htm

25.4.10

Seriously, these people are WIRED

Present the masterpiece to your guest. For all they know, this is how you always make coffee. Michael Conroy.

who has trained himself to sleep in one-hour bursts. This gives him time to run his firm and fit in book-writing, race-sailing and all the other distractions of achievement-focused wakefulness.

"You could build traffic noise into a dream.", not he stresses, when he's driving.

A hundred thousand years ago, if you slept for eight hours, you'd be eaten

Home-gym heroes - exercise tech you won't want to hide in the basement

Don't be fooled by the penny farthing looks: its electric motor will carry you 10km on a single charge, at speeds up to 20kmh. £3,000 ...

laid down in layers and heated, fusing the particles into a form generated by algorithms.

Next I want to make a doorbell that sounds like a dying star

Researchers have developed a way to compare aromas visually

comes as a stainless steel box; you bash a seat into it with a hammer (supplied). $9,750.

Canadian poet wants his work to live on after he's gone. Like, billions of years after. It if works, his poem could outlast the human race.

I wanted to write about "play", but it's fallen prey to our 21st-century need for significance.

When someone tells me that something is impossible, I want to do it and prove it is.

Brush away your plaque with some wound-healing, car-repairing paste - Colgate sensitive pro-relief rapid and lasting relief ... from pain and suffering

Interviews designed to blow your minds [If I put you in a sealed room with a phone that had no dial tone, how would you fix it? Asked at Apple]

Robert's soldiers use the wiki while on the move by talking, typing into a smart pad and annotating Google maps.

Military scholars have been arguing the importance of networks for future conflict for more than a decade now.

"Our wiki firewalls get cleverer and more responsive everytime the enemy tries to hack them ... they're alive, canny."

I like the idea of flattening this limitless, unknowable space into something as outdated as a family slide show.

We look for companies to dominate an initially small market that subsequently experience explosive growth

"Imagine if anyone caught spending money on Stephanie Meyer novels could be rendered down into their constituent chemicals and scattered on barren land as organic fertiliser." I make it explicit: this snip is by none other than Warren Ellis of WIRED magazine, who "didn't spend all these years evolving the ability to operate a bottle-opener to have all possible minions immolated in one go."

No more philosophy - genuine understanding

I see that undergraduates, rather than flocking in droves to investment-banking jobs, are turning to volunteering and smaller cars.

This is the future of warfare

It's not how many friends you have. But how much of a friend they are.

The significant is driving out the light.

My favorite is type 1b - it explodes as brightly as a billion suns.

Living under someone else's dominion? Serf. It's time to start your own country.

Wired explores the new trust economy. Someone in Brisbane borrows it until tuesday.

Overheated milk produces hydrogen sulphide, which smells like rotten eggs.

Microfoam malfunction?

Promptly resubmerge it to avoid rendering the milk unstable injecting too much air.

"And, O my brothers, would you believe your faithful friend and long suffering narrator pushed out his red yahzik a mile-and-a-half to lick the grahzny, vonny boots...The horrible killing sickness had whooshed up, and turned the like joy of battle into a feeling I was going to snuff it." - CWO

Way to ruin a perfectly good and naive sunday, like thinking things might just end up alright, and like there's a whole lot of decent people in the world who care. Thanks wired. I hope this urge to vomit subsides before dinner.

Got your attention? Check out "WHY THE IPAD REALLY MATTERS, P. 120"

Don't forget to inform yourself of "WHO'S SHAPING THE DIGITAL WORLD? FROM VIRAL HIT-MAKERS to V.C. TITANS: THE WIRED 100, P. 86", and "DUCK! WE TEST BULLET-PROOF VESTS, P. 132"

MAY 10 £3.99 - weird.co.uk - THE FUTURE AS IT HAPPENS

-------

Frankly, it all sounds to me like those visions of grandeur I associate with the occasional changeling days I start off with a strong shot of espresso, or a double tall latte.

And thats why Darjeeling, bergamot and walnuts.

21.4.10

Tenureclock and Jabberwock

"Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!"

http://www.jabberwocky.com/carroll/jabber/jabberwocky.html

"Beware the Tenureclock, young one,
Don’t pause at night or flaws they’ll catch.
Be sure you publish blurbs, and shun
The populous intro class!"

http://www.improb.com/airchives/paperair/volume7/v7i4/tenureclocky.html

19.4.10

god_writes_good_code.py

# Copyright (c) 2010 DBW.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# pygmentize -f html -o god_writes_good_code.html god_writes_good_code.py
# More info @ http://burstcoding.blogspot.com/2010/04/rendering-code-via-pygments-in-your.html

import nltk
from nltk.corpus import PlaintextCorpusReader as PtCr

import numpy
import os


def cache_url(url, gunzip=True):
    """fetch the url locally if not already local.
    gunzip - {True,False} - pass through gunzip or not
    """

    filename = os.path.split(url)[-1]
    ext = os.path.splitext(url)[-1]

    # will we be unzipping?
    if gunzip and ext==".gz":
        unzipped = filename[:-3]
        if not os.path.exists(unzipped):
            err = os.system("gunzip -f %s" % filename)
            if err!=0:
                raise OSError, "gunzip error on file: %s" % filename
    
        return unzipped


    elif not os.path.exists(filename):
        err = os.system('wget %s' % url)
        if err!=0:
            raise OSError, "wget error on url: %s" % url

    return filename


def draw_from_cfdist(cfdist):
    
    values = numpy.array(cfdist.values())
    keys = cfdist.keys()
    a = numpy.add.accumulate(values)
    # draw random integer upto end of a+1
    rndi = numpy.random.randint(a[-1]+1)
    idx = a.searchsorted(rndi)
    return keys[idx]
    
def generate_model(cfdist, word, num=15):

    for i in range(num):
        print word, 
        word = draw_from_cfdist(cfdist[word])


if __name__=="__main__":

    # King James bible and New Hacker's Dictionary.
    sources = {'kjv':'http://www.ccim.org/~bible/kjv.rawtxt.gz',
               'nhd':'http://catb.org/jargon/oldversions/jarg2912.txt'}

    urls = sources.values()

    # cache the urls and get filenames
    filenames = []
    for url in urls:
        filenames.append(cache_url(url))

    source_files = dict(zip(sources.keys(),filenames))

    # Make a corpus out of local cache
    local_corpus = PtCr('.',source_files.values())

    words = reduce(lambda x,y: x+y, [local_corpus.words(source_files[src]) for src in source_files])

    print "Generating bigrams."

    bigrams = nltk.bigrams(words)

    print "Generating cfd."

    cfd = nltk.ConditionalFreqDist(bigrams)


    for i in range(20):
        generate_model(cfd,'God')
        print "\n"

Utterings of god_writes_good_code.py

God. It is a PDP - paired keyboard macros or parents, that sin
God rather limited their Xerox PARC
God hath put them a sagan
God be willing to construct
God, my roaring lion, and how the universal constructor
God Righteous featurectomies are only if the sour wonton soup is shed innocent
God of mercy on. A pastime is no pleasure in this naming convention
God doth not till all unwanted notoriety
God is cruft: and would cleave unto the LORD, and see the city
God. Female hackers at midnight, and praying, lest my son
God of Solomon gave him: black art not profit margin
God is usually generalizations of a reply, and hast paid the congregation
God, saying and forty years of socks: I am that
God of God our uncomely parts of language
God of rocks I am God, the Chinese Army technique, I conceived
God; and none other; and the knees to his son of Waterloo
God hath been with thee, it, and came to thee ? for science
God of the book of a cloudy pillar stand upon the next day: 9
God in hackish sense 2 Go not unto Taanathshiloh, and his feet.
God: so I will; and with her suburbs, so, whatsoever is.
God, / n. Hackers are essentially dead ? And Moses
God is hardened, Fear not himself for his neighbour in all his mercy
God made loops with us
God: I gather it into a procedure to keep under
God of electric service attack with the floppy disk



-- (c) 2010 DBW, all rights reserved.

Career Collage

A power networker herself, Alice is going to be giving her best power networking tips.

With over a decade of expertise in research, market intelligence, public policy, project management and communications, Aaron knows a lot about research and finding information that people don't want publicized.

The past few years have proven tough for many recent graduates to land jobs.

Hear three speakers tell you how to take control of your career and find well-paying work.

Random talk is useless.

I pour out a cup of water. Is the cup empty?

The good fighters of old first put themselves beyond the possibility of defeat, and then waited for an opportunity of defeating the enemy.

Foray into Natural Language Processing

Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
>>> nltk.chat.chatbots()

Which chatbot would you like to talk to?
1: Eliza (psycho-babble)
2: Iesha (teen anime junky)
3: Rude (abusive bot)
4: Suntsu (Chinese sayings)
5: Zen (gems of wisdom)

Enter a number in the range 1-5: 4

Talk to the program by typing in plain English, using normal upper-
and lower-case letters and punctuation. Enter "quit" when done.
========================================================================
You seek enlightenment?
>indeed
One may know how to conquer without being able to do it.
>why conquer?
Ask me no questions!
>I seek enlightenment
Heaven signifies night and day, cold and heat, times and seasons.
>And conquer
Attack him where he is unprepared, appear where you are not expected.
>is it worthwhile?
Please consider whether you can answer your own question.
>I cannot
The good fighters of old first put themselves beyond the possibility of defeat, and then waited for an opportunity of defeating the enemy.
>
>>> nltk.chat.chatbots()
Which chatbot would you like to talk to?
1: Eliza (psycho-babble)
2: Iesha (teen anime junky)
3: Rude (abusive bot)
4: Suntsu (Chinese sayings)
5: Zen (gems of wisdom)

Enter a number in the range 1-5: 5
***************************************************************************
Zen Chatbot!
***************************************************************************
"Look beyond mere words and letters - look into your mind"
* Talk your way to truth with Zen Chatbot.
* Type 'quit' when you have had enough.
***************************************************************************
Welcome, my child.
>Hello
Greetings. I sense your mind is troubled. Tell me of your troubles.
>Why conquer?
Why do you think conquer?
>One school might argue that it is a necessity of life
Form is emptiness, and emptiness is form.
>Conquer life, and life conquers us
The reverse side also has a reverse side.
>Submit to life, and life submits to us
When you're enlightened, every word is wisdom.
>Amen
Random talk is useless.
>Amen
The reverse side also has a reverse side.
>Random talk is useless
Form is emptiness, and emptiness is form.
>And so it is revealed that you are only the shadow of a zen master
I pour out a cup of water. Is the cup empty?

31.3.10

What would be awesome?

ksnapshot -> tesseract -> klipper

with programming language syntax hinting support.

Use case: Navigate to a book on google books,



press "print screen", highlight code and it appears in your clipboard.

Update:
In fact, this book is online here.

27.3.10

Morning after 56 herbs


Of want

Of desire

Of intent to deny

  the existence of principles
  by which one can smoothly live out ones days

Of boredom

Of heartlessness

Of aggression

  Do I relive my father's essence
  because I am his son?


Of desire to lead
Of burning intent
Of want of result
Of aggression for resolution
Of heartlessness for the loyal
Of boredom for the principles

  I relive my fathers essence
  for I am his son.

Now, in this calm hour,
in the presence of friends,
the bottle was drank
but returned for refund.

The body is wise.
Not like the mind,
  always trying to justify its existence.

Existence describes what a body does.

Fear the mind,
  trust the body.
Though the mind leads,
  the body follows.

All the faults you find in me are true.
I left without saying goodbye.
But see that I did right to return,
as you knew I would.
These faults are those of a young man.
The faults of pollen and seamen.

The mind has done enough damage here.
Approaching soon let the mind find calm
  comfort in nothingness
  while the body exists through it.
While the body persits,
stronger, truer,
loving the mind for its concoctions,
admiring the mind,
as a mother
her son.

-- (c) 2010 DBW, all rights reserved.

24.3.10

Avatar

It is human nature to want to experience either the complete destruction of life on earth as we know it, the tragedy, armageddon, or its complete salvation, the epic, the promised land, in our own lifetimes. Remembered will be the story of those who do not: Those who chose rather Darjeeling, Bergamot and Walnuts, and how they triumphed over the conundrum of their own insignificance.

-- (c) 2010 DBW, all rights reserved.

23.3.10

The Partisan



Arpeggio applied to perseverance, as bergamot to darjeeling

22.3.10

It's an illusion, you see ...

Stare at the walnut in the middle, and see the colors of bergamot and darjeeling appear where they don't belong.


© 2008 van Lier & Vergeer

Van Lier, Vergeer, Anstis, 2009, Filling-in afterimage colors between the lines, Current Biology, 19 (8), R323-R324.

Source http://illusioncontest.neuralcorrelate.com/2008/filling-in-the-afterimage-after-the-image