Sunday, December 04, 2016

Setup passwordless SSH login

Found a easy to use step-by-step guide for setting up passwordless ssh login (works on Cygwin).

http://www.linuxhowtos.org/Security/SSH%20login%20without%20password.htm

Sunday, May 22, 2016

Caste, Varna & Jati

See my presentation to RAYS at their 2015 conference in San Francisco


Sunday, December 13, 2015

Notes from Upgrading Hindupedia

I just went through a month long process to upgrade Hindupedia's Debian and Mediawiki from an ancient version installed 5 years ago (Debian) and Mediawiki 1.16.5 to the current version.

This was necessitated by Rackspace forcing me to upgrade our underlying virtual server (from the original virtual server to their "next gen server") which caused Hindupedia to constantly crash.  A problem that took them 3 weeks to diagnose!

The new server at Rackspace has very poor performance as compared to the original server (which I found out after the new site went live)...I have had to upgrade to a higher-performance server but the site performs worse than the old one...requiring lots of additional optimizations.  I would move off of Rackspace if it wasn't so time consuming to do so...

Below are my raw notes and links to helpful sites I found along the way from the migration.


 Restrict account creation -- "Autoconfirmed accounts"  
 Optimize MySQL: https://github.com/major/MySQLTuner-perl   
                  http://haydenjames.io/mysql-query-cache-size-performance/  
 Optimize Apache: http://apache2buddy.pl/  
 Spam cleanup: http://webmasters.stackexchange.com/questions/9194/mass-deletion-of-spam-revisions-in-mediawiki/87775#87775  
 Defragment tables: http://stackoverflow.com/questions/26514073/mysql-defragment-innodb-tables  
 Optimize mediawiki: http://techwelkin.com/slow-mediawiki-optimize-to-enhance-performance-part-1  
 Configure security: http://www.rackspace.com/knowledge_center/article/configuring-basic-security-0  
 COnfigure iptables: http://www.gethackingsecurity.com/lockdown-ubuntu-2/  
 Apache caching for mediawiki: https://testbit.eu/using-mod_disk_cache-with-mediawiki/  
 Check page header: wget -S --delete-after -nd http://www.hindupedia.com/en/Main_Page  
 Memcache instructions: http://wiki.theplaz.com/Memcached_on_1and1_with_MediaWiki  
 {  
 ##mods-enabled/mpm_prefork.conf         
     StartServers           15  
     MinSpareServers      2  
     MaxSpareServers     31  
     MaxRequestWorkers    31  
     MaxConnectionsPerChild  10000  
   
   
 ##apache2.conf  
 <IfModule mpm_prefork_module>  
   StartServers     15  
   MinSpareServers    2  
   MaxSpareServers   31  
   MaxClients      31  
   MaxRequestsPerChild  10000  
 </IfModule>  
 }  
 {  
 PageTools.php Line 80  
   
   
         $user = $this->getSkinTemplate()->getSkin()->getUser();  
   
         if ( $user->isLoggedIn() ) {  
         } else {  
         }  
   
 }  
 LinkTitles  
 {  
  don't add links in templates  
  doesn't recognize diacritical marks on characters  
 }  
 Extra space above title:  
 .p-contentnavigation {  
   display:none  
 }  
   
 Google Site Search extn: https://www.mediawiki.org/wiki/Extension:GoogleCustomWikiSearch  
 Last modified date: https://www.mediawiki.org/wiki/Manual:Footer  
   
   
                 <component type="Html"><![CDATA[<div class="socialWrap">  
 <div class="twitter_follow_us">  
 <a name="Follow on Twitter" href="http://www.twitter.com/Hindupedia" title="Follow on Twitter"><img rip-style-borderwidth-backup="" rip-style-borderstyle-backup="" style="" rip-style-bordercolor-backup="" src="/eng/images/follow_on_twitter_icon.png" alt="Follow on Twitter" height="22"></a>  
 </div>  
 <div class="addthis_sharing_toolbox1 addthis_toolbox addthis_default_style"></div>  
 </div>]]></component>  
   
 MAGIC WORD issues: https://gerrit.wikimedia.org/r/#/c/107259/1/includes/MagicWord.php  
   
 { Server setup script  
 #!/bin/bash  
 IP="166.78.121.59"  
 cd /var/www/www.hindupedia.com  
 echo `pwd`  
 rm -rf hindupedia.sql* htdocs.1112015 htdocs_* htdocs.bak* htdocs.mediawiki.1.25 htdocs.new htdocs.tar root.dir.tgz /var/www/www.hindupedia.com/logs/* /var/www/www.hindupedia.com/htdocs/eng/StartProfiler.php &  
 apt-get install -y php5-dev php-pear libcurl3-openssl-dev php5-intl libicu52 icu-devtools libicu-dev php-apc imagemagick  
 yes '' | pear install pear  
 yes '' | pecl install intl  
 pear install MAIL Net_SMTP  
 echo "extension=raphf.so,propro.so,intl.so" >> /etc/php5/apache2/php.ini   
 sed -i "s/\<VirtualHost.*:80\>/VirtualHost $IP:80/" /etc/apache2/sites-available/www.hindupedia.com.conf  
 wget releases.wikimedia.org/mediawiki/1.25/mediawiki-1.25.3.tar.gz  
 scp root@www.hindupedia.com:~/LocalSettings.php /var/www/www.hindupedia.com/htdocs/eng/.   
 /etc/init.d/apache2 restart  
   
 tar -xvzf mediawiki-1.25.3.tar.gz   
 cp -rf mediawiki-1.25.3/* htdocs/eng/.  
 yes '' | pecl install pecl_raphf pecl_http   
 http://www.hindupedia.org/eng/mw-config/  
 http://www.hindupedia.org/eng/mw-config/  
   
 map q O###KKM update incompatible###^[j^i#^[:w^M  
   
 }  
   
 fix upload security: https://www.mediawiki.org/wiki/Manual:Security#Upload_security  
   
 PECL: http://www.mkfoster.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/  
 http://www.gossamer-threads.com/lists/wiki/mediawiki/  
 Skin: Foreground ( http://foreground.thingelstad.com/wiki/Main_Page )  
 Extension: LinkTitles ( https://www.mediawiki.org/wiki/Extension:LinkTitles )  
 Extension: DynamicPageList (3rd party) ( https://www.mediawiki.org/wiki/Extension:DynamicPageList_%28third-party%29 )  
 cpan CPAN App::cpanminus --installdeps  
 cpanm MediaWiki::Bot --installdeps  
 cpanm MediaWiki::Bot   
 cpanm Data::Dumper::Simple   
 cpanm MediaWiki::API   
 [roothp6:/var/www/www.hindupedia.com/htdocs/eng/extensions]$ rm -rf DynamicPageList simplefeed rss BreadCrumbs  
   
 Import dump:   
   
 { Chameleon skin  
 Skin: Chameleon ( https://www.mediawiki.org/wiki/Skin:Chameleon )  
 * To Install  
 cd /var/www/www.hindupedia.com/htdocs/eng  
 curl -sS https://getcomposer.org/installer | php  
 mv composer.phar /usr/local/bin/composer  
 php /usr/local/bin/composer update  
 php /usr/local/bin/composer require mediawiki/chameleon-skin "1.*"  
 apt-get install git node npm  
 curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -  
 sudo apt-get install -y nodejs  
 sudo apt-get install -y build-essential  
 add '$wgDefaultSkin='chameleon';' in LocalSettings.php  
 * To install theme 'United'  
 http://bootswatch.com/help/  
 cd /var/www/www.hindupedia.com  
 git clone https://github.com/thomaspark/bootswatch.git  
 npm install -g grunt-cli  
 npm install  
 apt-get autoremove  
 https://www.mediawiki.org/wiki/Skin_talk:Chameleon  
 }  
   
 { Extension: ColList  
 List extensions: https://www.mediawiki.org/wiki/Category:List_extensions  
 https://www.mediawiki.org/wiki/Extension:ColList ## is bad...  
 https://www.mediawiki.org/wiki/Extension:Sort2  
   
 }  
   
 pear list # verify Net_SMTP OK.  
   
 Autolink extension: LinkTitles  
 Fix bug: https://github.com/bovender/LinkTitles/issues/5 (change "/u" to "/" in line 227 in LinkTitles.body.php  
   
 DynamicPageList extension:  
 (Main page tag)  
 <dpl>  
 namespace=Quotes  
 category=Sagely Quotes  
 include=*  
 includemaxlength=450  
 escapelinks=false  
 randomcount=1  
 reset=categories   
 addpagecounter=true  
 mode=userformat  
 resultsheader=__NOTOC__ __NOEDITSECTION__  
 listseparators={{mp-topicheader-h3|Sagely Quote}}\n  
 </dpl>  
 *** But need to fix table width dynamically resizing ***   
   
 *** Need to enable page history  
 i.e., http://www.hindupedia.org/eng/index.php?title=Main_Page&curid=1&action=history  
   
 http://stackoverflow.com/questions/3513773/change-mysql-default-character-set-to-utf-8-in-my-cnf  
 http://alvinalexander.com/blog/post/mysql/list-tables-in-mysql-database  
   
 { PHPMyAdmin for SQL  
  apt-get install phpmyadmin (for pre-requisites)  
  wget https://files.phpmyadmin.net/phpMyAdmin/4.5.1/phpMyAdmin-4.5.1-all-languages.tar.gz  
  http://wiki.phpmyadmin.net/pma/Setup  
   
 }  
   
 { SQL  
 mysql -u root -p <pw>  
 set names utf8;  
 show tables;  
 SHOW TABLE STATUS;  
 SHOW TABLE STATUS WHERE `NAME` LIKE '%page%';  
 show variables like 'char%';  
 show variables like 'collation%';  
 SHOW COLUMNS FROM page;  
 select page_id,page_title from page where page_title like 'Adhik%';  
 show index in page;  
 ALTER TABLE page MODIFY page_title VARCHAR(255) CHARACTER SET utf8;  
   
   
 http://product.hubspot.com/bid/7049/MySQL-and-Unicode-Three-Gotchas  
   
 -----PAGE TABLE STATUS BEFORE UPGRADE-----  
 mysql> SHOW TABLE STATUS WHERE `NAME` LIKE '%page%';  
 +-------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+---------+  
 | Name       | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time     | Update_time | Check_time | Collation    | Checksum | Create_options | Comment |  
 +-------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+---------+  
 | page       | InnoDB |   10 | Compact  | 12461 |      127 |   1589248 |        0 |   2162688 | 11534336 |     14232 | 2015-11-01 10:40:06 | NULL    | NULL    | utf8_general_ci |   NULL |        |     |  
 | page_props    | InnoDB |   10 | Compact  |   0 |       0 |    16384 |        0 |      0 | 11534336 |      NULL | 2015-11-01 10:40:07 | NULL    | NULL    | utf8_general_ci |   NULL |        |     |  
 | page_restrictions | InnoDB |   10 | Compact  |   2 |      8192 |    16384 |        0 |    65536 | 11534336 |       3 | 2015-11-01 10:40:07 | NULL    | NULL    | utf8_general_ci |   NULL |        |     |  
 | pagelinks     | InnoDB |   10 | Compact  | 28377 |       56 |   1589248 |        0 |   1589248 | 11534336 |      NULL | 2015-11-01 10:40:07 | NULL    | NULL    | utf8_general_ci |   NULL |        |     |  
 +-------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+---------+  
 mysql> SHOW COLUMNS FROM page;  
 +-------------------+---------------------+------+-----+----------------+----------------+  
 | Field       | Type        | Null | Key | Default    | Extra     |  
 +-------------------+---------------------+------+-----+----------------+----------------+  
 | page_id      | int(10) unsigned  | NO  | PRI | NULL      | auto_increment |  
 | page_namespace  | int(11)       | NO  | MUL | NULL      |        |  
 | page_title    | varchar(255)    | NO  |   | NULL      |        |  
 | page_restrictions | tinyblob      | NO  |   | NULL      |        |  
 | page_counter   | bigint(20) unsigned | NO  |   | 0       |        |  
 | page_is_redirect | tinyint(3) unsigned | NO  |   | 0       |        |  
 | page_is_new    | tinyint(3) unsigned | NO  |   | 0       |        |  
 | page_random    | double unsigned   | NO  | MUL | NULL      |        |  
 | page_touched   | binary(14)     | NO  |   |        |        |  
 | page_latest    | int(10) unsigned  | NO  |   | NULL      |        |  
 | page_len     | int(10) unsigned  | NO  | MUL | NULL      |        |  
 +-------------------+---------------------+------+-----+----------------+----------------+  
 mysql> select page_id,page_title from page where page_title like 'Adhik%';  
 +---------+----------------------------+  
 | page_id | page_title         |  
 +---------+----------------------------+  
 |  11974 | Adhikamasa         |  
 |  11975 | Adhikamasa,_adhimasa    |  
 |  7128 | Adhikamāsa        |  
 |  6658 | Adhikamāsa,_adhimāsa   |  
 |  11977 | Adhikara          |  
 |  11978 | Adhikara_Nandi       |  
 |  11976 | Adhikarana         |  
 |  6660 | Adhikaraṇa        |  
 |  6659 | Adhikāra         |  
 |  6661 | Adhikāra_Nandi      |  
 |  7126 | Adhikamāsa,_adhimāsa   |  
 |  7117 | Adhikaraṇa        |  
 |  7125 | Adhikāra         |  
 |  7118 | Adhikāra_Nandi      |  
 +---------+----------------------------+  
 -----PAGE TABLE STATUS AFTER UPGRADE-----  
   
 +-------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+---------+  
 | Name       | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time     | Update_time | Check_time | Collation    | Checksum | Create_options | Comment |  
 +-------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+---------+  
 | page       | InnoDB |   10 | Compact  | 11883 |      133 |   1589248 |        0 |   2162688 | 111149056 |     14232 | 2015-11-01 10:40:06 | NULL    | NULL    | utf8_general_ci |   NULL |        |     |  
 | page_props    | InnoDB |   10 | Compact  |   0 |       0 |    16384 |        0 |      0 | 111149056 |      NULL | 2015-11-01 10:40:07 | NULL    | NULL    | utf8_general_ci |   NULL |        |     |  
 | page_restrictions | InnoDB |   10 | Compact  |   2 |      8192 |    16384 |        0 |    65536 | 111149056 |       3 | 2015-11-01 10:40:07 | NULL    | NULL    | utf8_general_ci |   NULL |        |     |  
 | pagelinks     | InnoDB |   10 | Compact  | 28765 |       55 |   1589248 |        0 |   1589248 | 111149056 |      NULL | 2015-11-01 10:40:07 | NULL    | NULL    | utf8_general_ci |   NULL |        |     |  
 +-------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------------+----------+----------------+---------+  
 mysql> select page_id,page_title from page where page_title like 'Adhik%';  
 +---------+----------------------------+  
 | page_id | page_title         |  
 +---------+----------------------------+  
 |  11974 | Adhikamasa         |  
 |  11975 | Adhikamasa,_adhimasa    |  
 |  7128 | Adhikamāsa        |  
 |  6658 | Adhikamāsa,_adhimāsa   |  
 |  11977 | Adhikara          |  
 |  11978 | Adhikara_Nandi       |  
 |  11976 | Adhikarana         |  
 |  6660 | Adhikaraṇa        |  
 |  6659 | Adhikāra         |  
 |  6661 | Adhikāra_Nandi      |  
 |  7126 | Adhikamāsa,_adhimāsa   |  
 |  7117 | Adhikaraṇa        |  
 |  7125 | Adhikāra         |  
 |  7118 | Adhikāra_Nandi      |  
 +---------+----------------------------+  
 }  
 // vim: ts=2:sw=2:noet:comments^=\:///  
   

Monday, January 12, 2015

Correlation matrix for my equity portfolio


I got interested in creating a Correlation matrix of my stock portfolio after the folks at Motley Fool Pro did it for their portfolio.  Attached is the calculator if anyone else is interested in replicating the exercise.

https://drive.google.com/file/d/0B4ehPprHSJUsVkY4amg1SW1SSzQ/view?usp=sharing

Monday, August 04, 2014

Journey Through Shastra

Collection of articles / links for research into my talk "Journey through Shastra"

http://www.mallstuffs.com/Blogs/BlogDetails.aspx?BlogId=232&BlogType=Spiritual&Topic=Science%20in%20Hinduism-Einstein%20Theory%20of%20relativity
http://www.gatewayforindia.com/articles/physics.htm
http://www.religiousforums.com/forum/science-religion/84199-scientific-miracles-hindu-scriptures-must-see.html
http://www.tamilbrahmins.com/sociology/11162-knowledge-biology-hindu-scriptures.html
http://www.hinduwebsite.com/hinduintrod1.asp
http://www.hinduwebsite.com/hinduism/hinduscriptures.asp
http://goaayurvedic.com/Achievements%20of%20Ancient%20India.htm
http://www.hinduism.co.za/hinduism.htm
https://www.archive.org/stream/cu31924031220126/cu31924031220126_djvu.txt
http://theindianhistory.org/ancinet-india-articles-information.html
http://www.culturalindia.net/indian-architecture/ancient-architecture/index.html
http://bharatjanani.com/achievements-of-ancient-india/
http://theindianhistory.org/ancinet-india-articles-information.html
http://ambedkarism.wordpress.com/2011/03/22/why-suddenly-the-brahmins-declare-the-vedas-to-be-infallible-and-not-to-be-questioned/
http://www.voiceofdharma.com/books/rig/ch3.htm
http://www.voiceofdharma.com/books/rig/ch4.htm
http://sankhyakarika.webstarts.com/uploads/RIGVEDA.pdf
http://vedamu.org/PageViewerImage.aspx?DivId=1815
http://vedamu.org/Veda.aspx
http://vedamu.org/PageViewerImage.aspx?DivId=2033
http://siddharthssinha.blogspot.com/2013/03/atharva-veda-part-of-four-vedas.html
http://siddharthssinha.blogspot.com/2013/01/sanatana-dharma-hinduism-part-4_26.html
http://siddharthssinha.blogspot.com/2013/01/sanatana-dharma-hinduism-part-4_14.html
http://www.iitk.ac.in/vs/vs/res/downloads/premendra_talk.pdf
http://www.arshabodha.org/HinduDharma/Lctr4.2_Satish_BrahmanaAranyaka.pdf
http://www.arshabodha.org/HinduDharma.html
http://www.wisdomlib.org/hinduism/book/a-history-of-indian-philosophy-volume-1/d/doc6986.html

Friday, July 11, 2014

Setting up a NAS

My Tonido Plug 1 crashed the other day and unfortunately, Tonido does not provide an updated image of Debian.  The stock image of Ubuntu they provide is horribly outdated and Ubuntu doesn't support ARM, so there is no way to get an updated version without spending a week compiling on the plug computer...

So, I decided to setup a virtual NAS server to run on my HTPC.  The applications I wanted to run are:
  • Tonido
  • Deluge
  • Logitech Media Server (for my Squeeze Box)

 

Setup virtual NAS on Oracle Virtual Box

Install Virtual Box from Oracle -- this is a free virtualization platform
Also install the Virtual Box extensions (also from Oracle and free)

 

Attaching a physical drive on Virtual Box

To attach a physical drive, you have to first create the vmdk
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands createrawvmdk
 -filename c:\Users\pc\Documents\vRangadevi\PhysicalDrive.vmdk -rawdisk \\.\Phys
icalDrive3
To get Virtual Box to actually use the disk follow these instructions (from here) if you are running a Windows Host (reproduced below)
  1. Close all open programs or documents on any partition on the disk to pass-through
  2. Run DISKPART (command line utility)
  3. Select hard drive carefully using SELECT DISK. disk numbering starts at zero. you can roughly verify your selection with LIST PARTITION if you know what your partitions should look like or LIST DISK to see disk sizes.
  4. Offline the disk using OFFLINE DISK. all volumes will disappear from windows explorer.
  5. ATTRIBUTES DISK CLEAR READONLY
  6. Verify with ATTRIBUTES DISK
You also need to start virtual box as "administrator"

use VBoxManage modifyhd --type=writethrough

Otherwise, if you use the snapshot feature, all future writes will go to the snapshot instead of the drive

Add the vmdk to the virtual NAS inside Virtual Box

 

Install Debian

I decided to create a second VMDK using Virtual Box to attach to my virtual NAS (and put it on my SSD -- not the physical disk that we just created in the previous step)

To install Debian,
  • Download Debian ISO from their site
  • Create a new Virtual Box instance w/ 512 mb ram, 5gb virtual HDD for the O/S partition (this was what my plug computer was setup with earlier). 
  • Boot off of the ISO and install w/ the following options
    • Select "File Server", "SSH server", and "Standard system utilities" options for packages to install
    • Reboot
su root
vi /etc/apt/sources.list (Comment out the reference to the debian cd)
apt-get update
Edit /etc/fstab to enable automount of physical disk

 

Install applications

apt-get install sudo samba deluged deluge-webui openvpn screen vim

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.690_all.deb
dpkg -i webmin_1.690_all.deb
apt-get install -f -y
  • visudoers (to give your account ability to sudo)
  • vi /etc/samba/smb.conf
    • Change workgroup to your workgroup
    • allow hosts = 192.168.1.*
Add permissions for paths in Samba
[root]
    path = /media/disk2part1/
    browseable = yes
    read only = no
    guest ok = no
    force create mode = 0775
    force directory mode = 0775
    valid users =
Add any other users as needed

 

Setup Deluge

Setup deluge to work with a block-list

 

Install SqueezeBox Server

  • Install SqueezeBox server (Logitech media server)
  • Download from http://www.mysqueezebox.com/download
sudo dpkg -i

 

Install Tonido

wget http://www.tonido.com/download.php?TonidoSetup_i686.deb
sudo dpkg -i
sudo apt-get install -f -y

 

Configure OpenSSL

  • Create conf file with details of vpn provider (name it .conf)
  • Create password file & reference in conf file
  • Edit /etc/init.d/openvpn to add "NAME" variable which contains of conf file
  • To add to system boot list
update-rc.d deluge-daemon defaults
invoke-rc.d deluge-daemon start

 

Setup IP Tables

Setup IP tables as doing so will close unnecessary ports and secure the server To autoload at startup: https://wiki.debian.org/iptables

Install vboxadditions

To install vboxadditions, you need to install header files first...

sudo apt-get install linux-headers-3.2.0-4-486 
mount -t iso9660 -o ro /dev/sr0 /media/cdrom0
/media/cdrom0/VBoxLinuxAdditions.run

Force FSCK to check HDD after every reboot

edit /etc/rc.local and add 
touch /forcefsck
echo "-V -- -v" > /fsckoptions

Install Dante proxy

Dante will enable you to proxy internal network traffic through the vpn tunnel (tun0)

Common URLs/ports for reference

Deluge: http://:8112 
Webmin: https://:10000
Logitech Media Server: http://:9001 
Tonido: http://:10001


Thursday, August 16, 2012

Buy or Hold Mannkind


Mannkind (NASDAQ: MNKD) is an inhalable drug company developing a fast acting, inhalable insulin (branded Afrezza) that is superior to any other insulin in the market today and a likely blockbuster drug.  They have completed phase III clinical trials and received no drug efficacy related pushback from the FDA, but have received two CRLs recently.  They are currently conducting two clinical trials to prove that the inhaler they intend to go to market with is equivalent to the inhaler with which they used for most of their clinical trials.

Afrezza is inhalable (through a whistle like inhaler) as compared to Eli Lilly’s (NYSE: LLY) and Novo Nordisk’s (NYSE: NVO) injectible insulins.  Inhaling is simply easier to take than sticking yourself with a needle, no matter how advanced today’s insulin pens have become.  Inhaling is also likely to improve patient compliance (ie. people will be more likely to take their insulin on time).  Further, it is much more forgiving (take it at the beginning of your meal, no calorie counting, etc) compared to the injectibles. Afrezza is also likely to be the only inhalable option for Type I & II diabetics if approved.  The only other one that has been approved is Exubera by Pfizer (NYSE: PFE) and Nektar Therapeutics(NASDAQ: NKTR) which was a mega-flop in 2006 and subsequently withdrawn from the market.  Afrezza and Exubera couldn’t be more different.  Exubera’s inhaler was the size of a bong and quite complicated to use and Exubera didn’t provide any incremental benefits as compared to injectibles unlike Afrezza which could actually help prevent weight gain.

Mannkind’s founder is a multi-billionaire who has invested about $1 billion of his own money into the company and maintains approximately a 31.3% stake (no other Insulin company has a funder with such a large equity stake).

The current trials are delayed and still enrolling patients.  Mannkind expects to submit the results to the FDA in Q3, 2013 and thus will not get an approval before Q2-2014!  They currently only have approximately $59 million in funding ($32 million in cash and $27 in available debt financing) which will fund them through most of Q4 (they used $57 million of cash in the first half of 2012 but expect increased expenses related to the clinical trials in the remaining part of the year). Taking a very pessimistic view, they would require at least an infusion of $171 million ($57 / 6 months for 1.5 years) to get through approval.

While Mannkind has been in very long-running negotiations with partners, no agreement seems to be close to final (despite management’s statements to the contrary on several occasions).  They have not been successful in their raising additional debt financing and are hoping to raise non-dilutive financing as promised by the management team for the last two quarters.  While delivering on this promise will be a positive surprise (given their history of making optimistic statements which they have yet to deliver on), it is more likely that shareholders are going to get diluted once again and soon.

While I believe that there is a likelihood of further dilution, we also know that Al Mann is trying very hard to not get diluted himself—at the last offering, he converted some of Mannkind’s debt to him into equity simply so that he could maintain his ownership position in Mannkind.  In the off-chance that management is able to deliver on their promise (either through partnership or raising funding through a non-dilutive means), the stock price could easily go above $10 per share.

Thus, I recommend that current share holders grit their teeth and sit on their shares.  For those looking to build a position, I would recommend taking small bite-sized positions and growing them over time.

Tuesday, May 15, 2012

Bull Case for MNKD


Jockey CEO

Al Mann is a billionaire with a series of startups that he has successfully exited from including Minimed which made insulin pumps. He also owns something akin to 40% of the company and has a line of debt open to the company as well.


FDA 

  • Clinical Trials: They have completed Phase III clinical trials and have not had any CRLs where the FDA pushed back on Afrezza (the actual drug). 2 more Phase III clinical trials under way (catalyst 3)
  • CRLS: this is where the company has fallen short to date. The last CRL was a result of MNKD management making a decision to switch inhalers from Gen 1 to Gen 2 (a big mistake in my mind). The Gen 2 inhaler is much superior (less drug required, better design) but got roadblocked due to an inter-departmental issue at the FDA...and hence, the current Phase III trails are aimed at proving that the amount of Afrezza delivered between the two inhalers are equivalent (and this essentially has nothing to do with the efficacy of the drug)! Interesting note on this...as a side note: an FDA insider  got caught on insider trading had traded with the expectation that MNKD to be approved at the last submission...


Partnership

Al has a reputation of being an extremely hard-nosed at negotiations...so where others would have partnered earlier, I expect the partnership for Afrezza to come closer to FDA approval. (catalyst 2a)


Pipeline

They have a few cancer drugs in the pipeline. No one (including me) give this any value because if Affrezza doesn't come to market, the company will go under.


Funding

A huge question mark as to how this will happen. They currently have funding through the end of 2012 (combination of cash on hand and the $38M remaining on Al Mann's line of credit). The next round of funding, if equity or debt will likely see Al Mann also adding more money as he has in each past round of equity based funding. (This catalyst can go either way depending on whether the additional funds are equity or debt or partnership).


Product

  • AFREZZA - is an inhalable insulin. The FDA has had no issues with this drug at all through clinical trials and has recommended a study on kids as young as 4 years old. This addresses the Type 1 & 2 diabetes market and has shown amazing results..ie blood glucose response similar to normal insulin produced in non-diabetic people and fast acting response (approx 15 minutes or less). It also has shown an ability to blunt weight gain ( a common problem with diabetics). The inhaler is the size of a whistle (unlike Pfizer's which was the size of a tennis ball can).
  • Technosphere - this is the wildcard. It is the excipient used to deliver AFREZZA but could be used with a large number of other drugs. No one gives this any value (just like the cancer drugs in the pipeline). However, this technology provides MNKD interesting non-Afrezza related partnership opportunities. (Catalyst 2b)


Competition

All competitors for inhalable insulin have essentially dropped out of the race. Competition is now only with pills, below-tongue dissolving tablets, skin patches and needles. The under-tongue tablets and skin patches are still early in their developmental cycle.

Tuesday, April 17, 2012

Thoughts on Leverage in Personal Investing

With the financial meltdown; personal leverage in investing has gotten a bad wrap.  Lets examine the types of leverage and than discuss the types of behaviors that led many to get burned.

There are several types of leverage:
1. Overspending on your credit cards---ie financial leverage to drive personal consumption
2. Maxing the amount of your mortgage to get the biggest house for your current salary
3. Borrowing money to invest in real-estate
4. Borrowing money to invest in a business
5. Borrowing money to invest in liquid investments (ie. stock markets)
6. Using your "buying power" to invest in equities
7. Lending your shares out for a fee to others who would like to short them.

There are probably others, but these types of leverage cover ones that most people will encounter.

#1 & #2 are about personal consumption.  The first is just a bad idea.  Buying an item that starts losing money the moment you buy it and paying 18+% per annum for the privilege is just plain bad.  If you need to do this to put food on the table than that is another story.  Unfortunately, for most people in the US, this is about consumption of non-necessity type of goods (ie. non-food items).  There are plenty of articles on why this is bad, do a google search for "credit card debt stories". 

#2 -- is a common misnomer.  Buying a house is also personal consumption although it is commonly thought of as buying an "asset".  If you look at financial accounting rules, the house is an asset -- for your bank (the one that provides your mortgage).  A house is not an asset!  It is a "home".  The building depreciates and looses value.  The land may gain value.  But, does it gain sufficient value to not only cover the building depreciation but also any improvements you may make as well as the interest you pay on it?  In today's environment, this is not an easy answer.  We can look at financial calculators or build fancy excel sheets to prove this--but at the end of the day, don't think of your house as an "asset" unless you are willing to sell it at a moment's notice and move if the market makes your asset profitable or if your asset looses value just like you would for any equity investments you may have.

#3-#6 are truely about investing.  #3-#5 involve borrowing money at a (typically) variable interest rate and investing it in something that will hopefully provide a return above that interest rate.  The pros and cons on these will be discussed later.

#6 is a very different type of leverage--and something that you will find in your brokerage accounts if you try to buy/sell options.  Brokerage companies will compute the "risk" of your cash & equity holdings in terms of the loss of value based on volatility and call it "Initial Maintenance Margin" or something of this type.  They will also calculate an "Available Margin" which is the additional value that your positions have today beyond the "Initial Maintenance Margin".  What these mean is that basically, if you have $X of equity, they will allow you to borrow $Y against $X as long as you maintain a minimum of $Z of value in your account where $Z is often less than $X. 

But, what makes this different from #6 is that you can use this value to sell options which impact "borrowing power" but do not require you to actually borrow any money.  When you sell an option, depending on the type of option, you are telling the person you sold the option to that you will be the other end of the trade if/when they wish to exercise their option.  For this privilege, they will pay you a fee upfront and your brokerage company will calculate the risk on the option being exercised and add that to your "Initial Maintenance Margin" and reduce that amount from your "Available Margin". 

#7 is another very different type of leverage...one that the average investor rarely sees and one that institutional investors take advantage of all the time to either juice their returns or increase their own profits.  It involves lending shares (that are owned by the lender) to others.  The buyers will typically use these shares to create short positions and in return will pay a fee to the lender and also give the lender cash collateral equivalent to the value of shares lent.  Only in very rare cases does the lender not get back their stock (ie. their brokerage company goes out of business)--as the brokerage company acts as an intermediary and is the counter-party (not the actual borrower).  If you have a brokerage company (like Interactive Brokers) that is transparent about this--they will give you a percent of the fee for borrowing.  If you don't (most brokerage companies), than you will not ever be told about this--but they will lend your stock and keep 100% of the fees.  If you have an equity account and positions that have any sort of short interest, this is the most risk-free way of leveraging your returns.

Monday, February 06, 2012

Mannkind Financing Summary (February 6, 2012)

Al Mann's Investment
Summary: Al Mann gets 31,250,000 shares of Mnkd in exchange for $77.2m debt cancellation (and potentially reducing the revolving debt line by $77.2m). 

In short, he is protecting himself from some of the dilution but he remains a debt holder for Mannkind.  This debt-to-equity conversion was probably required by the investors as a way for Al Mann to show that he has skin in the game for this round of fund-raising but provides Mannkind with no incremental cash.

External Investment
Underwriters: Jefferies & Company, Inc., Piper Jaffray & Co. and Cowen and Company, LLC
Issuance: 31,250,000 units = 31,250,000 stock + 18,750,000 call options (strike = $2.40, expiry = ~2/2016)
Price: $2.4 / unit

Cash raised net of underwriting expenses: $70,500,000 (@$2.256 / unit that the underwriters are paying to Mannkind)

What is the valuation of stock & warrant in each unit?

1 unit (@$2.4) = 1 stock + .6 of a call option (strike price: $2.40, expiry ~2/2016)

There are no publicly trading options with 4 year expiry dates...without reverting to Black Scholes, the
$2.5 option expiring in 1/2014 is valued at $0.60 (2 years to expiry).  Same option expiring in 1/2013 is valued at $0.39.

Using a volatility calculator and daily closing prices for Feb 7, 2011 - Feb 7, 2012 we get a range of volatility values (16%-71%) using 4 different volatility calculations.  Than using a Black-Scholes calculator (Inputs: high & low end of volatility, 1004 trading days, stock & strike price of $2.4, risk free rate of 2%),  we get the price of the warrant to be in the range of $0.328 - $1.1029.

Value of 1 warrant: $0.328 - $1.1029 (ie. value of .6 warrants = $0.1968 - $0.66174)
Value of 1 stock: $2.20 - $1.73826 (8.2% - 27.6% discount to the $2.4 value of the stock)

Additional: 
Underwriters have an option, exercisable for 30 days, to purchase up to an additional 4,687,500 shares of common stock and warrants to purchase 2,812,500 shares of common stock to cover any over-allotments.

Dilution
Current Shares Outstanding: 122.34M
New shares added as a result of this deal: 81.25M (assuming the warrants are eventually exercised.  If they are never exercised, chances are that Mannkind is out of business and this discussion is moot).
Total Shares Outstanding after Offering: 203.59M
Dilution: 33.5%


Other Fund Raising
Separate private offering of convertible senior secured notes  not considered a part of this offering.  No details are provided on what these are or to whom.

Conclusion
This deal sounds like it was negotiated with Warren Buffet in terms of extracting an ounce of flesh for financing. While I have confidence in Al Mann it looks like the investors that the underwriters shopped this deal to do not--hence the failure of the original private debt placement and the current valuation for the equity placement.  On the other hand, they could just be negotiating from a position of power vis-a-vis Al Mann and thus able to extract these generous terms.   

References
http://biz.yahoo.com/e/120206/mnkd8-k.html
http://finance.yahoo.com/news/MannKind-Announces-Proposed-bw-1380749394.html?x=0
http://finance.yahoo.com/news/MannKind-Receives-Commitment-bw-2160821953.html?x=0

Note: I am long MNKD

Saturday, October 22, 2011

Setting up RackSpace Cloud Server

Setup Php5, apache

sudo apt-get install php5 php5-cli libapache2-mod-php5 apache2
export EDITOR=/usr/bin/vim

vmstat -m (shows memory listing)

Memory ran out while trying to do this (free -m showed 40M free)...restarting the server 'shutdown -r now' freed up alot of memory (200M free after reboot).

configure virtual host setup (support multiple domains)
http://www.debian-administration.org/articles/412

my friend installed mysql for me...

to test the subdomain--need to have godaddy point to my new server (since they are also my registrar)....to do this, go into the godaddy domain manager and than you can enter a new 'A' record under the "total dns" manager.

Install APC on debian (lenny)
http://www.electrictoolbox.com/install-apc-php-debian-5-lenny/

---
Not sure if this is the kind of level you are after but this is what I wrote
up for use in my organisation if we need to perform a complete disaster
recovery of our wiki. This has been tested numerous times for both recovery
on the same server, as well as migrating to another server. I haven't tried
between OS though but don't see there would be any issues with that.

Before doing this, Apache2 needs to be configured in the same manner (ie
same directory root etc), correct php version installed and compiled, etc.

A couple of things: wikidb.servername.$DAY is just a gzipped mysql dump of
the database. wikifiles.$DAY.tbz is simply a tar of the entire directory
structure. I have a cron job run daily to backup both.

Create Database
Mysql –u root –p
Create database wikidb;
Exit
Restore Database files
Cd /
Gunzip wikidb.servername.$DAY.gz
Mysql –u root –p wikidb < wikidb.servername.$DAY Ensure database restored mysql -u root -p wikidb show tables; User account in MYSQL
Mysql –u root -p
create user 'wikiuser'@'localhost' IDENTIFIED BY 'password to be used'
IMPORTANT make sure this is also the same as in the LocalSettings.php
file!';
Grant privileges to wikiuser on wikidb database
Mysql –u root –p
GRANT ALL ON wikidb.* TO wikiuser [at] localhost


Flush privileges;

Restore wiki config files and images
Cd /
Tar –xvjf //wikifiles.$DAY.tbz
Complete restore process complete – to make sure, perform test plan again

Potential things that ** may ** be required are:
//maintenance/php5 rebuildall.php
Double double check the correct database, username, password are used in the
//LocalSettings.php file
Make sure apache is set up correctly, and the wiki location set
appropriately in the LocalSettings.php file

MySql Setup
first install it

mysql -u root -p

mysql> create database hindupedia;

mysql> grant index, create, select, insert, update, delete, alter, lock tables on hindupedia.* to 'user'@'localhost' identified by 'password';

mysql> flush privileges;


Locking down the server

http://blog.jtclark.ca/2010/02/configuring-zend-server-ce-in-ubuntu-9-10-on-a-rackspace-cloud-server/

Tuesday, June 07, 2011

Media Lies (or should we say unresearched facts)...

The Shankaracharya of Govardhanpeetham (Puri) is H.H.Nischalananda Saraswati Swamiji.  However, it is interesting to note that the Press Trust of India (and other English language newspapers in India who print PTI without thinking about what is written) are now promoting a statement by Adhokshajanand Dev as the "Puri Shankaracharya" a title he gave himself.  Adhokshajanand has also been ordered by the Orissa high court to stay away from the Peetham.

So, given that this person is not a real shankaracharya...who cares what he says about Swami Ramdev...?  Furthermore, I have to ask the question to the media's credibility since they are highlighting what he is saying and highlighting his fake title as his real one...I don't see them quoting any other shankaracharya or Swami Nischalanandaji either!!!


(Story from PTI reproduced below):

Puri Shankaracharya supports govt action against Ramdev

Source: PTI      Date: 6/6/2011 4:02:05 PM



Shankaracharya Adhokshajanand Dev

Shankaracharya Adhokshajanand Dev


New Delhi, June 6 (PTI) : Supporting the government's action against Ramdev, Puri Shankaracharya Adhokshajanand Dev today blamed the yoga guru for all the trouble and said he should give up the saffron robe.
"Ramdev is responsible for all the disturbances. He hid the truth from his followers (about the deal struck with the government). He should apologise to them...He was misusing the saffron cloth for some years now. What happened (forceful eviction from New Delhi) is fine. He should not wear the saffron robe," he said.
He also accused Ramdev of having commercial interests in mind and said the yoga guru resorted to actions which were against the basic tenets of a saint.
"People who become gurus should give up commercial activities...Gurus and saints lead a life of renunciation and work for the welfare of others.





Friday, June 03, 2011


Differences in Mechanisms of Learning between Indian & Western systems
This is a really interesting article about mechanisms of learning in Indian (and eastern) systems and western systems and the inherent differences.  It also explains, at a very base level some aspects of our two cultures & societies.

Very interesting (albeit a bit heavy and scholarly) read as  it is especially relevant to our children who are/will be undergoing these experiences.

--


A mode of teaching, I said before, forms the way one learns. Stories are paradigmatic examples of our methods of teaching. Therefore, the form our learning actions exhibit is one of mimesis. This suggestion generates some surprising, non-trivial implications. Here are a few of them:

1. If mimetic learning is to succeed, meta-reflections about both what one is learning and how one is learning have to be avoided. In the best of cases, one realizes that one has learned, and that too only long after the learning process is completed. Such meta-reflections can only be avoided, if mimetic learning is the dominant learning scheme in a culture.

Consider what could happen otherwise, i.e., if there were many different learning schemes of equal importance or where, for example, mimetic learning is subordinated to other kinds of learning. The learning subject must have information present somewhere in his system which tells him whether a particular way of learning is appropriate in the given situation. Decision requires to be made both about what one wants to learn, and how one learns. One is forced, as it were, to be reflexive.

Perhaps, an example would prove instructive. Consider the way reading is taught in our cultures. In terms of efficacy, there is little to be said in favour of the superiority of Western methods as against our methods. Theoretically, the situation is equally bleak: existing pedagogic methods are through and through suspect with respect to psychological theories. In the most used teaching-to-read methods, the pedagogy of reading in the West rests upon what is called structural analysis. This involves an analysis of the structure of the words, i.e., an analysis of speech structure and word structure, both graphemically and phonemically. That is, one speaks out a word loud and one is taught to break it up into its constituent phonemes, which are then mapped to graphemes. Previously, a child used the word cat and made itself understood. There was nothing mysterious or puzzling about the word; it never occurred to the child that it ought to reflect about that or any other word. As it reaches appropriate levels at school, it is taught that cat is not the same thing as cat; the former is a word composed of phonemes k/a/th and that they correspond to the graphemes c/a/t; and that the word itself refers to the concept of the animal so named which, in turn, picks out an animal, etc. This process is deemed crucial to recognizing novel words.

For our purposes, the point of this example is the following: the way one is taught to read in the Western culture forces a child to think about what it is saying, how it is segmented phonemically, i.e., it is forced to become conscious of what it is doing, and to do consciously what it was doing all along without being aware that it was doing it. In the most used Western teaching-to-read methods, learning to read entails acquiring meta-level knowledge about the knowledge the child already had, viz., of its native language. In other words, it is taught to reflect consciously about its very learning itself. This is not limited to the pedagogy of reading alone.

2. The previous point helps generate the following hypothesis: socializing children by means of stories stands in some direct relation to the growth of reflexive selves. If it is the case that selves are reflexive in Europe, stories can only have entertainment value. The greater the degree a culture encourages the growth of reflexive selves, the less are also its stock of stories (legends, myths, fairy tales, etc.) A culture which stimulates reflexivity in its members cannot sustain stories as models.

3. There is another, albeit related, point to the previous hypothesis. In a culture where selves are not reflexive at all or are only partially so, but one whose ideal (or self-image) is governed by that of reflexivity, stories continue to be important but in a transmuted form. They continue to depict events and situations, but are powerless to teach. That is, they retain their instructional nature without being able to instruct. There is such a genre in Western culture: utopian thought. They are instructional in nature without really instructing. (That is exactly what the moral imperatives, the oughts, are.) They depict events and situations which are not real, i.e., not the is, but outside of it, viz., in utopia. They depict non-real situations and events with the explicit claim of doing so. Because of this, they can continue to exist only if they entertain and that depends on the aesthetic taste of the population at any given moment. The modern day utopian thought is known well enough to all of us to recognize it as so without doubt: science fiction.

4. If we learn to be moral beings through mimesis, it means that moral and ethical actions must be susceptible to being mimed. Contrast this stance with that of the West: a moral individual (an ideal priest or, say, Jesus Christ) is inimitable in principle. That is, a moral individual is actually a message, which does not say be like me, but one which proclaims hope for the humankind, brings glad tidings so to speak. And the hope is that the presence of such an inimitable, exceptional individual will save humankind. If one is righteous, it is not only because that is the way to ones salvation, but more importantly, because the salvation of humankind depends upon the righteous being present amongst them. One is moral so that other sinners may be delivered from their sins. Such figures cannot influence daily life positively, but do so negatively viz., as examples of what we ordinary mortals, cannot be. They are, literally, the embodiments of ought and, as such, outside the is (Not every human being can be an ideal priest or even, as the examples tell us, ought to be one.)

In Asia, such an ought is no moral example at all. A moral action must be capable of emulation in daily life and only as such can someone be an example. Moral actions are actions that a son, a father, a friend, a teacher, a wife, etc., can perform as a son, a father, a friend, a teacher, a wife, etc. Either moral actions are realizable in this world, and in circumstances we find ourselves in our daily lives or they are not moral actions at all. Therefore, those real or fictitious individuals whose actions we mime and who are, consequently, construed as exemplary individuals cannot find themselves outside our world, but in situations analogous to our own. (Such a view is consistent with our models of self, for obvious reasons.)

5. This suggests that the role of moral authorities in these two cultures is different. In the West, the moral authorities are rigid principles without mercy or forgiveness. All talk of autonomy notwithstanding, moral decisions are totally heteronymous. One has to reflect not only about the principle one has to apply, but also judge whether one has correctly applied it. As a consequence, moral domain becomes one of judgement. The objects of judgement are and can only be conceptual ones, viz., theories. To say that some action is moral is to say whether or not the description of that action satisfies some or other moral principle. We have noticed this already. Moral life gets impoverished by being reduced to a principle (e.g. utilitarianism) or by being at the mercy of anothers judgement (e.g., that of a priest).

In Asia, by contrast, the immediate physically recognizable authority figures (parents, teachers, elders) are also figures of moral authority. Mimesis in moral action requires figures recognized as moral authorities. Consequently, in a culture dominated by mimetic learning, not only do such authorities play an important role in regulating moral conduct, but are also so recognized. That is why, I suggest, parents, teachers, elders, ancestors have such a privileged position in our culture. They are not only familial or socially recognized authorities, but are individually recognized moral authorities also.

6. If socialization involves mimesis, and families are the primary units of socializing a human infant, the success of the socialization process depends very much on what the family exactly models. That is, an individual can be taught to live with others if and only if, the family stands for, or represents the significant details of the social environment. The family, in its important details, must be continuous with the moral community at large. And, I submit, it does.

Not only this. In a peculiar way, this sheds some light upon the sternness, or harshness considered typical of both family life and teaching situations in Asia. One is being prepared for life, when one is brought up as an offspring and a pupil. Between them, the parents and the teachers must prepare the child to act morally when it goes out as an adult to meet the world at large. That can only be done if the child faces a wide variety of situations during its growing-up process, and sees the ways in which others are going to construe its actions. Parents and teachers must, in the full sense of the term, stand for and represent the rest of the community. To allow parental love and indulgence to interfere in this process is to fail in discharging the moral obligation that one has assumed towards ones off-spring, viz., that of socializing the child. Consequently, ones family is also ones sternest and harshest critic. If one passes this test, the belief is that one can pass any other test. Hence the descriptions of an ideal father or teacher: harder than the diamond, softer than a flower.

The contrast between family as a ��moral arena as Asian culture sees it, and family as a Haven in a heartless world, as Lasch titles his book on family, cannot be sharper. In Western families, one is to experience love, one learns to be oneself. One becomes ones true self, and learns to let the others be. The socializing or educative role of the family is secondary, it is derivative. Its primary task is to protect the child from the cruel world out there. If it prepares the child to face up to the cold and indifferent world, it does so by providing that love and understanding which gives the child the courage to go and get what it wants. It is taught to be itself in all circumstances. Family is ones only oasis in the desert of social life.

In one case, family is the moral community; in the other, it is different from and other than the social world. Mimetic learning sheds light on the how and why of the former, partial and incomplete though it is as an explanation.

7. One other aspect of moral authorities is worthy of mention. Learning by mimesis, as supported by our model of self��, involves that the moral action of others can shame you into performing a moral action yourself, i.e., the actions that others perform/have performed can guide and instruct you in the course of your life.

Contrast this with the attitude in the West. Not only are moral individuals inimitable, but they also ought not to be imitated for yet another reason. Because ones action expresses ones self (in whatever form), and to be ones self is the guiding value of a life, the actions of such moral individuals are seen as expressions of the moral selves of those individuals. In such a case, a specific moral action ceases to have an instructional or pedagogic significance: it is only a psychological curiosity, i.e., it can tell you something about the kind of person that someone is.

While in one culture, a moral action could be seen as raising the question how is that an instruction for my actions? In another culture, it raises the question what kind of a person must he be to do what I would not? To get a flavour of this difference between our two cultures, I would suggest to those of you who have seen the film Gandhi, and in a position to talk to someone from the West who has also seen the film to do so. You would be surprised at what you can learn from such a coffee-shop talk. Consider, in this regard, what Einstein said of Gandhi

8. By its very nature, Mimesis is a reproduction of existing actions, i.e., it essentially conserves. A culture dominated by mimetic learning must, perforce, exhibit a very strong pull towards conservatism. Our cultures are essentially conservative. Tradition, the past, etc., must weigh heavily on all those who are members of such cultures. And, I submit, it does so in our case.

9. The other side of the same phenomenon is what happens when our cultures meet with those of the West. There is a partial exchange of authorities, not their total disappearance. The tendency is towards an imitation of these, new, authorities. We could look at the Westernization of our youth or at the fact that the Japanese have earned the label, often used pejoratively, of being very good imitators. We imitate the West not because there is some iron law of capitalism which compels us, willy-nilly, to be like them but because that is our way of learning. This might shed some light upon why one Indian community survived by adapting itself to the West, whereas another got exterminated by failing to do so.

10. Despite a considerable technological development in Asia much, much earlier, scientific theorizing (as we know of it today) emerged within the Western culture. A hypothesis that can be generated to throw some light on this phenomenon is this: mimetic learning is restricted to performing actions that are perceived as being performed by others. Novel or new actions result primarily by performing a familiar action in novel circumstances and secondarily by transposing actions performed in one domain to another. While mimetic learning is transposable, it remains essentially limited in scope. It is a scheme of social learning, if you like. It is relatively inflexible in the sense that it cannot be transposed to learning about the Natural world, unless in the form of modelling natural events in human artefacts. But this does not suffice for scientific theorizing. Crudely put, there is a kind of rigidity or inflexibility to our learning which is, to some extent, due to the lack of reflexivity in our learning.

There is something more that requires to he said in this regard. As I am not very clear about it myself, I will merely mention it in the passing. Consider this question: what notion of knowledge should we have, if we would want to consider mimesis as learning? Or, what notion of knowledge do we have, if we learn by mimesis?

It cannot be analogous to the interrogative, questioning, probing processes, which are seen as being characteristic to scientific theorizing. One cannot put constraints on Nature, and force it, as Kant put it, to answer our questions. There can be no mimesis in such circumstances. So, if this is not the notion of knowledge that we have, what else could it possibly be? My answer will be very vague, because that is all that comes to my mind. Mimetic learning involves being ready and alert to identify learning situations; such situations do not come with labels attached to their sleeves. Some situation, any situation, can be a learning situation; someone, anyone, can teach you; some action, any action, can be exemplary. Whether or not you learn from such situations, persons and actions depends upon you construing them thus. No person, for instance, performs an action with the sole intention of teaching you; he is performing the obligations he has assumed. Even where his obligation is to teach you, you can but learn if you construe it as a learning situation.

In a world, then, where fleeting actions and events can teach, and where teachers do not come with professorial chairs, there your readiness to learn is crucial, if you are to learn at all. It means that you have to be alert lest a teacher or an action passes you by, and open so that you may see what is being taught. Because, literally, anyone or any action may teach you, you will have to be fundamentally open to all situations and actions.

Cognitive attitude, thus, appears to involve these dimensions of readiness, alertness and openness to being taught. Though these dimensions and the construing activity are active, they are also peculiarly passive. For, consider: if learning is sub-intentional, what is taught depends on that which you construe as being taught, and your construal itself is a function of the dimensions involved in cognitive attitude, then the cognitive attitude itself can only be characterized, if we say that it involves readiness, open-ness and alertness to�� You cannot fill the blank with a constant, but can do so with a variable or with all events, all actions, and all persons at all times. Equally, you may as well leave it open. We do have a word, which captures such an open-ended attitude: receptivity.

Though this word does capture the passive dimension involved in such an open-ended cognitive attitude, it does so by stripping it of all its active dimensions. It must be clear from the foregoing that our cognitive attitude is not, cannot be, totally or even fundamentally passive. That is why I said that it is peculiarly passive. We could put it this way: cognitive attitude appears to involve openness and readiness to, God I hate this word, being revealed to. Consequently, knowledge seems to require some kind of an action, which happens to you as you go about in the world.

If it sounds mystical, that is because it has something to do with mysticism. But, not quite the way it may appear at first sight. It could be the case, I will come back to this point last, that mimetic learning involves the using of the right-hemisphere of the brain (for right-handed people), which is also the seat of mystical experience.

Be it as this may, one will have to return to explicate the conception of knowledge implicit in our cultures. Though vital and crucial, it will have to wait, perhaps, for that time when there is greater clarity all around.

11. What does it mean to grow up an Asian then? Application of mimetic learning scheme, if it can be called that at all, requires that one develops the ability to discriminate finely. One has to sort out, so to speak, situations and actions in such a way that one is able to distinguish between emulable-in-this-situation from the emulable-in-that-situation. Not all aspects of an event and action is, can or should be emulated. In other words, we grow up to be members of our culture by acquiring finely tuned set of discriminating criteria.

How do we acquire these criteria? Again, the answer cannot be other than to say, by mimesis. It is, if I may nest operations, mimetic schemes within mimetic schemes. Some of the patterns are preserved in our cultures by the multiplicity of cultural institutions: son, friend, pupil, father, wifeetc. As we slowly grow into maturity, we become some of these, and we learn to become these by taking as models those who went before us, those who are our contemporaries and so on. As these institutions overlap, so do our schemes, meshing and intermeshing with each other, generating and sustaining a culture, which none understand but all admit to being a gestalt of unformalizable and refined codes of conduct, rituals, ceremonies, etc.

Events and actions must loose their clarity and simplicity, when multiple and often incompatible models are said to model the same situation. They must become complex and essentially ambiguous. Indeed, I claim, they do. One expression of this situation is the extra-ordinary productivity of our culture with respect to religions.

12. Speaking of religions brings me to the last observation that I want to make. Again, it is a hypothesis generated by the preceding points. One of the characteristics of Western culture is the kind of importance it attaches to language. It is believed that everything is knowable, and what is knowable is also sayable, even though various thinkers like Kant, Hayek, etc., have warned against such a presumption. We need not choose sides on this debate for now. But to the extent this is believed, the education of people involves placing a very heavy emphasis on expressing things in language.

We know that human brain consists of two symmetrical hemispheres. Each of these appears to specialize in some kinds of tasks: the left-hemisphere of the right-handed people (or the right-hemisphere for the left-handed), for example, contains the speech area. Linguistic, logical and mathematical abilities or, in short, linguistic and analytical skills are more or less localized in one of the two hemispheres (I shall speak only of the right-handed people from now on and, hence, of the left-hemisphere alone, when I talk of the seat for linguistic, etc., skills.). Because intelligence refers basically to the development of linguistic and analytical skills, a culture which places great importance on developing intelligence has to emphasize such activities as its educational focus. It is also the case that one of the supreme ideals of Western culture is that of rationality (Of course we are all for rationality; who would want to be irrational in this day and age, except the irrational?) An action or a decision is rational insofar as it instances some or another rational principle. To be rational, to be moral, etc., is to act and judge according to some or other principle.

In such a culture, the left-hemisphere must be called into play more often than the right-hemisphere of the brain. The right-hemisphere, for its part, is the seat of emotions and passions, intuition and creativity, etc. In a culture where the ideal is the subordination of passion to reason (people like Hume notwithstanding), there the ideal is the subordination of the right to left hemisphere of the brain. The left hemisphere is, of course, not stupid, i.e., it is not just a boiling sea of animal passions. It simply does not have the linguistic ability, speaking figuratively, to express itself.

It appears reasonable to hypothesize that education in our cultures trains us to call the right-hemisphere into play more often than is the case in the West. Consider, for example, the realm of moral education. If stories and not the principles are the how of our moral actions, understanding such stories cannot take place without calling in the right-hemisphere of the brain. It must be said at once that understanding is not being used here in the sense of being able to answer questions about the stories, after being told one. Many people in the field of Artificial Intelligence are busy writing programs, which, it is claimed, display such ability. Rather, it is being used in the sense of taking it as an instruction for action. (It could be said that this is not an insurmountable problem, but I will come to it soon.) The stories, as I said, depict events and situations from life-situations, or consequences of actions performed by identifiable figures. As stories, they have to be appealing, and possess a definite order and structure. The order cannot be felt, and the appeal would be lost in the absence of the right-hemisphere, even if the left-hemisphere has to be called in to say exactly what the order or even the appeal consists of.

Perhaps it is the case that in the early years of childhood, the infant primarily uses the right-hemisphere of the brain to learn even while its left-hemisphere is being stimulated. That could be the reason why they are open to all situations, while displaying precisely the kind of cognitive attitude that I spoke of earlier. As any number of studies have shown us, the openness and creativity the children normally display fall very sharply within two years of beginning to attend school. The estimates go so high, psychologists speak of a drop of over 98% in the creative capacity of children within the first two years of their schooling, that it seems reasonable to assume that the dominance of the left-hemisphere of the brain over the right leads not merely to development of some skills (in this case, the development of linguistic and analytical skills), but, more importantly, to a different way of learning altogether.

An extreme example might help us appreciate the point better: it is not impossible to think of a computer making moral decisions. That is, it is not impossible to write a computer program which embodies some ethical theory or another, and contains instructions about how actions and events should be analyzed. It would be a mammoth job, and it is also true that one does not know today how such a program would look. But should it be possible to do so, the decision arrived at by the running of such a program on a computer would represent the pinnacle of what would be considered a moral decision. That is so, because moral decisions are the results of possessing an adequate moral theory.

There is no way we could represent our notion of morality in a computer program, unless it be in the form of some complex induction rules. But we are not inducing any rule whatsoever from the stories which depict moral actions or moral orders. We are not reasoning the way it requires to be represented, if written as a program: A did X in situation Z; my situation is analogous in some relevant details; therefore, provisionally, I ought to do X as well.. We could not be doing any such thing, if we learn through mimesis. You could, of course, represent our ways of being moral as thought it was an application of an inductive rule or even a set of them. This will tell you what your notion of the moral is, but not what we do when we act morally. (This is one of the reasons why, I believe, our notions of being moral differs both from situational ethics and from casuistry.).

This is not a pro or contra argument regarding whether computers feel or think. It is simply to say that the Western concept of the moral can be simulated on a computer whereas our ideas of the moral cannot, unless as a weaker version of its Western counterpart. It may turn out that I am wrong; until such time, I will believe that moral actions in our cultures cannot be divorced from the personal, experiential dimension whereas the Western notions can.

Whether this satisfies you or not, I believe that the point I want to make is clear: In the West, one is moral purely on conceptual grounds. On these grounds alone, can one not be moral in Asia, without the affective and the emotional being somehow involved.

There is a second, bolder, hypothesis to be made which I have already hinted at. Mimetic learning involves using the right hemisphere of the brain. There is some plausibility to this hypothesis as well. As I said before, to say or analyze what one is doing when one is miming is not to be able to mime at all. This saying or analyzing involves the left-hemisphere of the brain, which is where these skills are localized. Once such a process is initiated, the left-hemisphere assumes dominance. Consequently, the latter becomes more passive with the failure to imitate as a result. In this connection, think of the studies about the fall in the creativity of young children when they start attending school. It is in contact with an environment, which places such a premium on developing linguistic and analytical skills that children cease being creative. Creativity, we know, is the capacity of the right-hemisphere.

Now, whether one can localize mimetic learning in the right-hemisphere or whether using stories as models requires using both hemispheres, at least this minimal hypothesis can be reasonably accepted: learning processes in Asian culture involve calling the right hemisphere into play more often than is the case in the West. But, it requires to be said in order to prevent misunderstandings from arising, that does not imply that Asians are not logical or analytical or that Europeans do not feel. We have an extensive history of logical and linguistic analyses, and no one is suggesting that Europeans are born without right-hemispheres, much less that they do not use it. I hope this is clear!

Should this minimal hypothesis be true, it sheds light on another phenomenon characterized as typical of our culture, viz., the phenomenon of mysticism. The seat of mystical experience is the right-hemisphere of the brain. Our culture trains its members in the use of this hemisphere more often and more regularly than the West. Consider one of the unintended side-effects of this training: over a period of time, a statistically significant number of people will begin to report to having had the kind of experience we term as being mystical. This phenomenon will have to show some kind of regularity, i.e., it must happen regularly, over some significant period of time to some of the members of the group. While isolated reports, which come in now and then, can be discounted as being insignificant, it is not possible to do so when the same, or very similar report becomes something of a regular feature in a society. However it may get explained, the explanation cannot by-pass the phenomenon. It is experienced as something that always seems to occur, i.e., as something that seems to be a significant experience in its own right, a legitimate or even a very natural experience, which is culturally relevant to the community itself. I put to you that the acceptance of such experiences is preserved in our culture by making the mystical experience the very core of our religions.

By the same token, contrary must be the case in a culture like that of the West. And that is indeed so: mysticism has always been at logger-heads with the established religions. To be sure, this does not explain much. But, it does appear to shed some light on what requires to be explained.

This situation, if remotely true, would explicate the two differing notions of wisdom in our two cultures. In one, wisdom (sophia) is primarily theoretical in nature. In the other, wisdom is primarily practical in nature. In both, they are standards of excellence: someone who knows the truth is the wise one in one culture: in the other, it is someone who performs exactly the right action in the right circumstances. True, neither of these ideals is the exclusive property of either. But it does not take away, I trust, the point about the ideals of human existence as they differ between these two cultures.

I found this article posted on the following forum: http://www.india-forum.com/forums/index.php?/topic/49-indian-perception-of-history/