Cloud versions of Latex

I work with Lyx, the GUI for Latex, for writing my books. 18 years of writing in MS Word, and yes I have rightly criticized for my bad formatting. I hope to do a better job for R for Cloud Computing. Someday I will learn Latex and Sweave as well (sighs)

Sweave is a tool that allows to embed the R code for complete data analyses in latex documents. The purpose is to create dynamic reports, which can be updated automatically if data or analysis change. Instead of inserting a prefabricated graph or table into the report, the master document contains the R code necessary to obtain it. When run through R, all data analysis output (tables, graphs, etc.) is created on the fly and inserted into a final latex document. The report can be automatically updated if data or analysis change, which allows for truly reproducible research.

Where can I get it?

The Sweave software itself is part of every R installation

But alternatives to Lyx for a browser only version of Latex do exist.

There are two three of them right now

1) ShareLaTeX is now open source! ShareLaTeX is an online real-time collaborative LaTeX editor, and you can now run your own local version where you can host, edit, collaborate in real-time, and compile your LaTeX documents. You can run  the hosted version at,

Screenshot 2014-06-12 22.01.51

2)  Fidus Writer is an online collaborative editor especially made for academics who need to use citations and/or formulas. The editor focuses on the content rather than the layout, so that with the same text, you can later on publish it in multiple ways: On a website, as a printed book, or as an ebook. In each case, you can choose from a number of layouts that are adequate for the medium of choice.Screenshot 2014-06-12 22.16.38


Screenshot 2014-06-13 01.40.54

All are equally good and equally nascent. I like that Writelatex has an API


I like the Fidus Writer interface more but the ShareLatex has a bigger set of templates. I think Write Latex is more evolved than Fidus Writer but will still need to catch up with Share Latex

Both are available on Github for tinkering. and and

Maybe I will have to wait for Google Docs for creating an application for Latex typesetting. In the meantime, we shall Lyx.

(Hat tip – S Boucher for pointing me to write latex)

Hacks for Travian

What is Travian?

As per Jimmy?

Travian is a persistent, browser-basedmassively multiplayer, online real-time strategy game developed by the German software company Travian Games.[1] It was originally written and released in June 2004 by Gerhard Müller. Set in classical antiquityTravian is a predominantly militaristic real-time strategy game.

Travian has been translated into over 40 languages from the original German version,[1][2] and has over 5 million players on over 300game servers worldwide.[3][4][5] In 2006, it won the Superbrowsergame Award, in the large games category.[1][4][6][7]

Travian is programmed in PHP and runs in most modern browsers. Its creators may have drawn from an earlier German board game,The Settlers of Catan, for layout[8] and the resource development theme


Get onto its awesome for calculation

Read from when you are waiting in the game (yes there is waiting)

Early Game

1) Use Gold to take 25% bonus in Lumber and Clay

2) Use crop finder to locate your second city away from your enemy alliance and near a safe area for your alliance

3) Put troops on evasion and kill and plunder with Hero but Hero bonus should be for killing not crops

4) Try and Capture an Oasis Early and Try and Get your best troops early. This means doing more Academy and Hero upgrades.

5) Choose your capital wisely if you have reached multiple cities- Un selecting a city as capital breaks all buildings above level 10 back to 10 and breaks some buildings (Mason) completely.

6) Try and hit 50 points every day in daily tasks

Mid Game

1) Use Gold to take 25% bonus in Lumber, Iron and Crops

2) Rally Point should be way up

3) Try and hot 75 points daily tasks.


End Game

1) Spare some gold for this part

2) Be fickle and lie low.

3) You will need a lot of crops or you will die

(to be continued)

Price of Analytics Education from Indian Service Providers

This is an unedited list of education providers from India, with both classroom and online trainings. 1$ =55Rs. The list will be updated as and when changes occur or when a reader suggests. I will only be putting prices that can be referenced via a URL. Also later I will try and create an index to track prices. Because I have had relationships with a lot of people in Indian Analytics- I will try and put this in a Google Docs spreadsheet.

The basic template will  be

  • Service Provider-
  • Location-.
  • Type -Online /Classroom
  • URL (reference)
  • Dated-
  • Screenshot-


  • Service Provider-Venturesity
  • Location-Bangalore
  • Type -Classroom
  • URL (reference) -
  • Dated-11 June 2014
  • Screenshot-Screenshot 2014-06-11 12.23.59


The inevitable weaponization of the weather


Reasons I think weaponization of the weather (or climate) is inevitable

1) The weather is an inter connected system with many zero sum scenarios to nation states. This includes sharing of water resources and moving manufacturing in offshore locations

2) As climate change effects gradually cause increase variance in climate, this will lead to added hardship for populations. The economics branch of mechanism design might be better suited to simulate what a few degrees more or less in temperature will lead to riots, happier populations, economic stimuli just as agricultural studies focus on rainfall prediction, crop prediction etc.

3) Nation states have always had weaponry on a game theory basis. The weather being an interconnected system can be both dampened and enhanced in it’s adverse variance by man made means, and the interconnectedness can ensure deniability . Example a man made out of time El Nino effect can hamper rainfall in Indian monsoons and bring change in politics in that democracy

I still hope nations do not weaponize the weather. Unfortunately I am quite sure some of them are already thinking of both predictive and defensive mechanisms for countering climate change without any thought of how this affects other countries.


(This is continued from , ,, and

A lot of my earlier writings on weaponization of weather have been marked more by conceptual theories, added tit bits and a wee bit of creativity. I apologize for the immature lack of scholarly rigor in earlier writings as I work alone to refine my skills. )


Brewer’s CAP Theorm

CAP theorem states that there are three basic requirements which exist in a special relation when designing applications for a distributed architecture.

Consistency – This means that the data in the database remains consistent after the execution of an operation. For example after an update operation all clients see the same data.

Availability – This means that the system is always on (service guarantee availability), no downtime.

Partition Tolerance – This means that the system continues to function even the communication among the servers is unreliable, i.e. the servers may be partitioned into multiple groups that cannot communicate with one another.

In theoretically it is impossible to fulfill all 3 requirements. CAP provides the basic requirements for a distributed system to follow 2 of the 3 requirements. Therefore all the current NoSQL database follow the different combinations of the C, A, P from the CAP theorem. Here is the brief description of three combinations CA, CP, AP :

CA – Single site cluster, therefore all nodes are always in contact. When a partition occurs, the system blocks.
CP – Some data may not be accessible, but the rest is still consistent/accurate.
AP – System is still available under partitioning, but some of the data returned may be inaccurate.

from —


SAS makes it free to learn SAS

Wanna learn SAS language? Why go elsewhere? Get the original software in a virtual machine from the guys who actually created it!

It’s a 2 1.4 GB download and does require a 2 minute registration but thats all. You can even protype in it before you take that all important call to go for which software to buy for your analytics need. Note – retraining existing SAS analysts in R is expensive in terms of training costs, business disruption and code migration. Now only if someone could create a software to change SAS code into R code – that would make things different !!

SAS language analysts continue to be in much more demand than R language analysts- partly due to the failure of an authentic official R certification as it does not exist ( a fact that has been exploited by various institutes that teach you language syntax but not the analytics) and the poor state of the mothership R website with its huge and sometimes over detailed documentation

and I really like the professionalism as well as the generosity of the institute. Someone famous once predicted SAS will disappear by 2015 ( based on a time series model ). With billions of dollars and it’s kitty and decade long shrewd and street smart management, SAS is going to stay up a wee bit longer and give it’s wannabe killers a bloody nose or two.

Thank you Professor Goodnight

testing it myself now !!


Click to access sas-university-edition-107140.pdf

For whom is SAS® University Edition designed?
SAS University Edition is designed for anyone wanting easy access to statistical software to perform quantitative analysis in an academic setting. This includes undergraduate and graduate students, professors, adult learners, high school students, researchers and postdocs



download sas for free

KDNuggets Poll- Which software do you use to crunch?

The KDNuggets is an awesome poll for measuring which software you did use in the last 12 months. It already has 10000 voters already. What is unique about this poll is –

  1. takes less than 50 seconds to fill
  2. uses verification (single click) to ensure no duplicate votes are done
  3. transparent publishing of results in real time
  4. independent of vendor conflict of interests and honest.
  5. you can even download the raw data and start crunching your own analysis


I have many friends who send me emails to vote for them, and I have voted. Plus I wrote occasionally for the site.

So here is the link for the powerful poll –