Posted by Twain on June 24, 2010

TWAIN IT: cracking Quantum code and Semantics

Barry Robson very recently wrote on a group thread: “@Twain: You are not only the great integrator, you are a true “Renaissance Man”.

This is an amazing compliment and I’m really humbled because Barry’s background is that he’s CEO of the Dirac Foundation, St Mary’s Hospital Imperial College London; a Council Member of IBM’s Deep Computing Institute and Strategic Advisor at IBM’s TJ Watson Research Center; previously Professorial Lecturer at Mount Sinai Medical Center and also lectured at Stanford University Medical School. His full bio is here: http://www.research.ibm.com/people/r/robson/ and he’s been involved with genuinely ground-breaking projects.

For non-scientists, the Dirac Foundation continues the work of Paul Dirac who was awarded the Nobel Prize for Physics in 1933 (when he was only 31!!!) alongside Erwin Schrödinger, the genius behind the infamous “Schrödinger’s Cat” paradox. Dirac is credited with originating equations that describe the behavior of fermions and the potential existence of…..anti-matter.

It’s even more amazing because this discussion group comprises, arguably, some of the smartest AI and Natural Language Programming (NLP) computer scientists in the world; people who graduated with PhDs and Professorships decades before I was even a twinkle in my parents’ eyes and who’ve been dedicated to developing intelligent systems for over 3 decades more than me. I’m an unknowing novice by comparison to these super, super-clever people who share and spark knowhow in very contextual and relevant ways; and whom I admire, respect and aspire to emulate along my knowhow adventures and evolution.

So what caused Barry’s compliment? Well……….I “twained” three seemingly mutually exclusive approaches to code coherency and interoperability:

(1.) Cultural and perceptual calibration a priori to processing;

(2.) NLP statement structuring for verification of lexicon anomalies; and

(3.) Quantum Mechanics notation.

Here’s how the thread took shape; part of my contribution’s at the top:

I also threw in a solution to resolve Hamiltonian issues (these arose from Einstein’s original Quantum theories and are specifically about time-time capture, btw). It simply made sense in my mind to reconfigure subjunctive tenses from Latinate languages and to re-imagine it as computational code that would fit into double integrations for context mapping as well as differentials for transitional time-position capture.

Originally, when Barry introduced QM code and Hermitian operators into our discussion on “Can we compute the answer to any question?” following a video by Stephen Wolfram of Wolfram Alpha that indicated we would be able to, I have to admit that it was relatively new to me (or to crack a physicist’s joke…….it was µ relativity, ha ha). Anyway, Barry wrote:

For practical purposes that basically means that in standard i-complex QM you rotate the square root of minus one to the hyperbolic number (square root of plus one), and write your relators (verbs prepositions etc. ) as Hermitian operators.

Now  for anyone without a maths / astrophysics degree all of this would read like gobbledy-gook with the exception of the words “For practical purposes that basically means” and “verbs prepositions etc.”. For someone like me I home in on “i-complex” and become interested because I’ve had a long held belief in trying to fuse matrix maths with DNA paths and linguistics to try and arrive at genuine semantics.

Naturally, when faced with something I know less than I should about, I like to ask questions so that I can construct frames of reference for myself and also sanity-check the theories and process themselves for comprehension and coherency. My grandmother did say I was a “curious child and asked so many questions!” — LOL.

My questions stemmed along lines of construct and substitution for ensuring code consistency and coherency and Barry was kind enough to explain and provide examples of what he means by QM, Hermitian operators and twister notation. Here’s his explanation:

Using QM notation such as <subject| verb | object> as analogous to <A operator |B> in QM, operators can be products of operators, so adverbs that qualify them belong between the “|” symbols. Adjectives are actually quite subtle. They could be regarded as Hermitian operators that are completely symmetric as in <grass| green | grass>, but that is unwieldy and I tend to think of them in orthodata to metadata as in <grass:=green| or arguably <green_things:=grass|. QM often ignores the “:=” bit. What they mean is <momentum:=2.3 mass-velocity units | position:= 3 Angstroms>

Time, subjunctive etc belong as verb qualifying operators, unless like in Japanese you want a time tense adjective. Time suggests considering the CPT operations of physics, which I am trying, rather than simpy add a new mindless dimension to the thesaurus. Subjunctive seems to me to have a probabilistic-conditional aspect about it, though one can appeal to the twistor forms (see below) as in <|| wish that | <I| am | correct> >.

The article could be held to have adjectival force, but ultimately belongs I think in between the “|” with the verbs as a matter of categorical relationship. It is more natural to write

<some cats| are | black> = <cats| may be| black> (existential qualification for the general case)

<cats| are |mammals> (universal qualification for the general case)

<Aristotle| is |a man> (universal qualification for the incidence case)

<The philosopher| is |a man> (universal qualification for the incidence case)

<A philosopher| is |a man> (existential qualification for the incidence case)

After about 10 seconds I grasped this notation convention, so I proposed these transformations:

A-ha, thanks, Barry. So it seems to me that even optimally QM and its Hermitian operators (at the moment) work along an equivalent functional way to how logic questions work in IQ tests of the type:

  • All cats have tails. Some cats are black. Chester has a black tail.

Can we tell what color Chester is? Or whether Chester is a cat or in fact a dog?

There are 2 Hermitian operator applications of particular interest.

(1.) When you write “I tend to think of them in orthodata to metadata as in <grass:=green| or arguably <green_things:=grass|”, would it be possible to adjust it to these scenarios?

  • <green_things:=naive|

In English there is a phrase “green about the gills” which indicates someone fresh and naive.

  • <green_things:=new|

Universally, the color green is associated with growth and new shoots.

  • <green_things:=prosperous|

In Chinese, the homophone for the word for color green is the word for prosperity and happiness.

  • <green_things:=fresh|

In Italian, the word verde for green also has connotations with verdura (vegetables which are fresh).

(2.) You also wrote, “Subjunctive seems to me to have a probabilistic-conditional aspect about it, though one can appeal to the twistor forms (see below) as in <|| wish that | <I| am | correct> >.”

The subjunctive tense is deployed in French, Italian and Spanish when expressing:

* events which are uncertain/doubtful to happen;

* emotions (hopes, fears, etc.);

* opinions rather than facts (subjectivity involved); and

* beliefs.

Time-wise, these are then sub-categorized into future subjunctive, present subjunctive, imperfect subjunctive, past perfect subjunctive and present perfect subjunctive. 

So…..could the “twistor” notation look something like this:

<|would || wish that | <I| am | correct> >

<|might || wish that | <I| am | correct> >

<|did || wish that | <I| am | correct> >

<|had || wish that | <I| am | correct> >

<have had || wish that | <I| am | correct> >

OR could it look something of the form:

<|time || wish that | <I| am | correct> >

I thought about this a little more, in amongst putting together the Startup Shuttle initiative (more in another post), and had one of my “Twain Synergy Epiphany” moments (TSE which will henceforth become some kind of energy or force unit like Joules or Newtons and be pronounced as “T-see”, LOL). It started to distill, crystallize and map in my mind how QM could work with NL and perception capture a priori, so that’s what I shared and that’s what caused Barry Robson to write:

“@Twain: You are not only the great integrator, you are a true “Renaissance Man”.

Readers should be aware that one of my personal heroes is Leonardo da Vinci and never am I more grateful that it’s the likes of him rather than Barbie that my parents taught me to appreciate. For sure, without their grounding and early orientation on the world’s most extraordinary talents, I would now not have reference frames or the intelligence to interact with these super, super-clever people whom I admire and respect.

So now having been suitably impressed and inspired by Barry Robson I’m going to apply to IBM’s SmartCamp competition:

* http://www-05.ibm.com/ie/smarterplanet/smartcamp/index.html

Hopefully, my friend David Price of debategraph.org is reading this post and will also apply since debategraph definitely would contribute to a Smarter Planet as IBM envisions, :*).

Additionally, readers should watch out for IBM testing their Watson machine on ‘Jeopardy’ soon. It was originally announced back in April 2009 and has been scheduled to happen soon (http://www.nytimes.com/2010/06/20/magazine/20Computer-t.html):

Posted by Twain on July 18, 2009

A wee small advantage of being able to code

Well, as I mentioned there was a technical glitch with the hosting provider transferring this blog site to a secure VPN. It meant I couldn’t upload any images because the file path became initiated differently. I sent their Tech Support some messages hoping they’d resolve it their end, but 5 emails over 3 days later we were no closer to the mystery of a phantom file path and how it was being originated.

So I decided to DIY and troubleshoot it myself.

I found the cause of the glitch in under 2 minutes (yes, I do time myself; it’s a reasonable benchmark to test yourself under). Then I sent a detailed answer AND screenshots to Tech Support of the hosting provider along with a recommendation that it’s not a cache issue since I looked in every single WP-cache PHP file, all the codes of the WP templates and no anomalies appeared. Please don’t ask how I can check 15 PHP log files and 10 WP templates in under 2 minutes, it’s just how it works.

If you have some sense of code orientation, input-output on initiate files and directory structure you can find whatever code wrangle there is and troubleshoot it. I’m definitely not in the Top 10,000 of coders world-wide but I know enough to make my tech life run more smoothly, if that makes sense.

Anyway, so now I’ve done a “show+Twain” to my own hosting providers. They’re actually a great hosting provider and the Tech Support team are all really helpful, professional and informative towards customers. Nonetheless, they don’t always know everything or get it right and as a customer it’s good to pass on tips to them if you can fix the code first.

It’s all a virtuous circle. You find the fix. You share it with Tech Support. They share it with other users and make their file paths work ===> less crashes on the system as a whole, less frustrations from support+customer, and next time Tech Support pull out all the stops to fulfill your request (e.g., an extension of a special offer where hosting is charged at a significant percent reduction).

That’s a win-win. We like those.

Posted by Twain on March 29, 2009

Art*chemistry*code = UI flexibility

I have an admission to make. I’m a person of peculiarities.

I like to adapt, re-configure and re-arrange things until I maximize utility and personal convenience from whatever technology I’m using. This, I believe, is a reflection of typical human creativity and curiosity. We all like to customize our environments: our homes, our clothes, our cars, our desks, our own bodies (anything from a simple ear piercing to plastic surgery) etc etc etc………The list is endless because humans are infinitely inventive and innovative.

Personally, my love of moving things around may stem from learning to play chess when I was about 5 and realizing that if I moved Piece X to a different square it completely changed the nature of the game. The adaptation trait first manifested itself when — before the advent of automatic pencils and earning any pocket money to buy lots of new pencils — I prolonged the usage of my pencil stubs by putting them into old felt-tip tubes which I’d widened by getting my Dad to gently heat them so the plastic would expand and I could push my pencil stub inside them.

In any case……..if something doesn’t exist that makes your life more convenient or beautiful……CREATE IT!

(Or move towards the mountain and climb it, step-by-steady-step, instead of fearing it from afar.)

The mountain before me is quite substantial. I want to code a genuine collaboration wiki-hub-whatjammijig. Instead of getting into a blind “headless chicken” panic about it I’m using the work of others to guide me.

For several years now, I’ve been in awe of Alan Kay and the development work which has taken place with the SQUEAK-TWEAK object-oriented languages (OOLs and OOPs to tech aficionados). Why? Well because it enables you to move things around at will. In certain respects it’s equivalent to the code version of biochemical mechanisms like proteins and DNA. Bits of code and UI objects can attach/detach to X,Y locations in a similar way to how molecules attach/detach to each other at X,Y locations. These concepts I understand well having studied organic chemistry in some depth.

To gain more insight on the processes I mean, please watch this YouTube video:

Now, in normal programming lexicon this ability to move objects around is known as “drag+drop”. It’s been shown on sites like iGoogle, netvibes and more recently Kosmix:

(incidentally, I’m excited by Kosmix’s potential as a search+browse alternative to Google as well as by the MeeHive offering which is being developed by the same company.)

In my quest to create a collab hub, I’m looking beyond the standard wikis like Wikipedia or even WordPress Mu / multi-user Typepad. Here are three examples I’m looking at:

* GE’s Imagination Cubed

* Google Docs Draw

* Swarmsketch

So far, this is what I have in mind and have managed to code whilst I’m architecting as much user flexibility and collective wiki-ness as possible into Project ART:

Ideally, it will get to the stage where people can co-create a magazine online (graphics, video embeds et al within movable and editable panels) and not simply more UGC text of comments and opinions. This is all very valuable but there is nothing like working towards an end-product around which…

CONTRIBUTORS WILL EARN A SHARE OF THE ADVERTISING SPACE REVENUES because they helped to create it!

Ok, more time in the code bunker ahead for me…………..

Posted by Twain on December 5, 2008

@T: Google Maps/Earth API…our fun starts…

My plan for @T (Always the Twain) includes having some Google Maps/Earth embeds in which RSS news feeds are dynamically loaded and real-time. To this would be added some capability to comment and thread — now THAT would be neat. 

As I’ve shown previously by linking to flickrvision, it is possible to do a wealth of visual dynamics with either Google Maps/Earth or Yahoo! Maps APIs. Below is a very simple map of movie locations in London. It’s incomplete and obviously I can insert photos and videos into the marker bubbles. 

Its purpose is simply to show that Google Maps/Earth technology is certainly something which I intend to leverage on this site. When I synch the KML with some xml that controls RSS feeds……….that’s when it will get interesting. 

Google Earth blog has an example using New York Times news content so this is definitely all codeable which is gr8!!! Please click on the image below to go to the movie map!

 

Posted by Twain on November 21, 2008

Code comforts: visual design champions

This is how my cool Flash pre-loader and homepage now look. I hope you’ll agree the site’s taking shape reasonably:

Compass pre-loader to Always the Twain (@T)

Compass pre-loader to Always the Twain (@T)

 

Always the Twain (@T): homepage

Always the Twain (@T): homepage

 

The pre-loader is essentially a 100-frame swf with a customized compass complete with a color wheel and flared camera lens that I created with Adobe Photoshop. I used the circular cut out tool……….A LOT — lol.

Designing websites isn’t easy. However, it can be extremely helpful for exercising your own creativity and I’d definitely recommend it. For absolute beginners there’s a wealth of packages out there including:

·      Apple iLife

·      Frontpage

·      Dreamweaver

Plus there’s a plethora of free online literature on everything from html to CSS (to control layout and design/style) to how to set up an SQL database.

I used to hand-code the html until I discovered that with Adobe Flash you can save the file as html too and this auto-generates all the html you need. Nevertheless, it is helpful to know html yourself because you can go back in and edit where appropriate; knowing where tags and divs begin / end and how they affect the layout is useful.

It gets more complicated when you start including Javascript or C++ to make calls and functions to the server and databases — particularly when you have an online form, forum, blog or any information gathering text box (that you may want to publish or simply store in archives).

We won’t cover that………………..yet. It is possible to teach yourself Java and other OOPs (object-oriented programs) in 14 days.

For now, I’d like talk a wee bit about Flash CS3 and Papervision3D.

 

MY DESIGN TOOLS OF CHOICE

I’m autodidactic in Flash and have learnt it organically via direct application rather than theoretically; this has its advantages and disadvantages (more on this in another post). There are several good sources of information so I tend to go in search of code Enlightenment here:

·      The Flash Enabled Blog

·      Actionscript.org

·      Sepiroth

·      Kirupa.com

·      Papervision3D

 

My favorite Flash anything at the moment is obviously Papervision3D — which is what the brilliant Spanish team, Bestiario, leveraged to build the TEDtalks videosphere:

* AMAZING VISUALIZATION COMBINING PV3D WITH YOUTUBE VIDEOS

 

Already, I can develop a few 3D swfs:

·      3D film wall (link soon)

·      3D JACKSphere (link soon)

·      3D carousel (link soon)

What would be “too cool for school” would be if I learnt how to cross something like sourcebinder with MSNBC’s Spectra  product with some form of Quantum4D.

THEN that resultant application would be something close to….AMAZIN+.

The products in action can be seen in these YouTube videos:

 

 

 

 

The limitation with Flash used to be that Google didn’t have much capability to search for Flash content. However, hopefully, with its recent strategic alliance with Adobe this will change.

* Google collaboration with Adobe to make Flash content more searchable

 

OPTIMIZATION

Whenever I create an swf, the thing I always forget to do which I DEFINITELY SHOULD DO FROM THE OUTSET(!!!) is to optimize the images and to choose the right format (jpeg / gif / png / png-8 / png-24) so that the file size doesn’t become unmanageable.

Needless to say…………..I forgot and then had to go back into the FLAs and optimize the images with Photoshop. Some of them went from 120KB to 12KB — proving that optimization makes a world of difference!

 

THE BEGINNING OF AN ADVENTURE

I have a definite strategic vision of what I’d like to see the Always the Twain site become over time: a collaboration hub with cool tools.

There’s a much more immediate to-do: my MPM (Media Perception Matrix) tool which I’m coding in Javascript — with plans to pitch it to Google (seriously), so this site will build up over time rather than overnight.

Thanks for following its progress! Lots more still to do and to enjoy………………

:*)