Sunday, July 28, 2013

How to Install WordPress on Microsoft WebMatrix

Leave a Comment
It can be very cumbersome to work with the WordPress files on the web host. It makes it easy to test the website locally and then deploy online. One tool to test it locally is Microsoft WebMatrix platform and today I’m going to show you how to do it in 5 simple steps.

Step 1
Download and Install WebMatrix from http://www.microsoft.com/web/webmatrix/

Step 2
Once the installation is done, click on 'New' and 'Application Gallery'.

Step 3
Select Wordpress and follow the wizard steps

Read More...

The Importance of Jotting Things Down

Leave a Comment
By default, thoughts have no structure. A trained mind can have structured thinking but how to train the mind in the first place can be very tricky. One of the methods that seem to work for me is to write things down. When you write down stuff you are forcing your thoughts to have a structure. When all those random things that you have to do with different deadlines occupy your head, it restricts the brain from clearly thinking. All the people good at multi-tasking are not really good at doing multiple things at one time. They are actually good at dividing big complex tasks into simple ones and then handle them one by one.

A big complex task means a whole lot of decisions to be made to simplify those tasks. And this can seem very complex due to the multiple thoughts that come to our minds while we are trying to do this in our head. It always helps to write things down. We can use a simple technique. Not to worry about the whole thing at once. But rather decide the direction of thinking and then divide it one by one. The direction can be based on the dependencies within the sub-tasks or can be based on any other resource based constraints. Then going through each of them one by one, we need to write everything down.

When there were no computers this used to be a trickier thing to do and required iterations. But doing these iterations would then train the minds and make them better thinkers. Today with technology it’s easier to edit and update and keep improving the structure. But at the same time people have become less patient to do these things. Those who do think of these as new tools that enables them for success.

Letting Go

While it can be a great tool for remembering stuff, it’s an even better tool to let go of something. Our mind has a tendency to hold on to some things. There are some things that worry us and some uncertainties that occupy our minds. These can last for days and can affect our positivity in big ways. At times like these, it helps to write things down. It frees our mind. When the worries are complex, it enables our mind to see that it is not that bad. And even if it is, we have written it down and figured it out. If one is worried, it even helps to think of the absolute worst case scenario and write it down in as much detail as possible. At the end of this exercise, one often realizes that even the worst case possible is something we can handle. It thus weakens the fear within us and helps us re-focus on the positive possibilities.
Read More...

Friday, July 19, 2013

Life Without a Time Machine

Leave a Comment
Time is a confusing concept. Most people often confuse time with space. Assuming that time is a one way traffic and we can't go back (once my time machine works I'll delete this post). Everybody wants to go back and re-live that one good memory over and over again. Some people visit the place where that memory was created in a hope that it will be that same time again. It sometimes is, or at least feels like so. Sometimes the memories are so good that they become stronger that the present and re-making them feels more important than making today memorable. I think I am also one of those individuals but I have also identified and accepted that the problem exists. And so working towards a solution.

If one thinks logically, of all the people who became known and famous and of all those who lived in oblivion, it would be tough to pick which is the right way to live. After all, life is only a series of experiences. In the bigger scheme of things, we are as big as we choose for ourselves to be. If that one year I spent somewhere was the best year of my life, there are two fighting forces within me. One is telling me to go back and live some more of that comfort that was. The other and the logical one knows that it's not a wise thing to do. For the latter knows that the experiences that I'm creating now are important to give variety to my fabric and give it some color. Think about any particular year in your life and think about the memories you have from that year. Is it that you woke up at 8 o' clock, got ready, went to work? Or do you remember how on that one day, when it rained so heavy that you were all wet only to be told on reaching that school that it's been declared a holiday? I think memories are created by the little differentials that we build in from one day to the other. Some are external of course, but most of them not. And we have to give our life a chance to create more and more of them by trying to vary our experiences.
Read More...

How to Avoid the Void in Life?

Leave a Comment
There is a common void that everybody feels in their lives and people have often accepted that to be the way of life. We often ask ourselves, if this is all there is to it. Some long strides in one direction and suddenly you are too far into one direction left questioning yourself whether those steps were even in the right direction in the first place. Getting your eyes on the next big thing seems to be the cure for all.

I remember 4 years ago when I used to work in software, all I remember today is good happy days. Our mind does that and it does us a lot of good. Not that I was best at my job or that life was very comfortable. It would surely seem that way today because our mind beautifully focuses on all the good things that happened. If I drill it down my best guess would be that I had a lot of short-term goals and my mind was completely focused on them. Because they were all short-term there wasn't much planning to be done and they were small enough to be actionable and achievable.

During my early days, I learned a lot of Guitar (not that I'm really good at it!). I would come back from the office and every night after dinner just play for a couple of hours. The short-term goal then was to be able to sing while playing (as simple as that!). Once these actions take over our thinking they induce further refinements and upgrades of our goals. Soon enough I was able to sing, even with my kind of voice, a couple of songs that suited it. Now I believe without doubt that anybody can sing. They just have to find the type of songs that suit their voice and it works. Now my goal had transformed too. My goal now was to record songs. Nothing fancy, just the acoustic cover of some of the songs I liked. This little upgrade to my goal pushed me to the next level. Recording is a great teacher. All that talk about self-reflection and improving comes alive and at work for you. The little unwanted pause or that one wrong note, all can be caught once it's on tape. And knowing that will make you extra careful to be right.

Now my guitar learning went on till my next hobby or project took over and of course that was taken over by something else. But this is the way the 'void' won't bother us. We don't have to wait for some magical thing to appear one day and fill it up. We have to do it ourselves. It keeps coming back more frequently for people like us and it helps to reflect on ourselves, identify the next thing you feel most passionate about and go for it.

Following goes into my rule book:

- Always look out for the next short term goal/hobby to fill up that void and Act on it
- Use Reflection (Recording) as a tool to improve yourself
Read More...

Wednesday, July 17, 2013

Liability-Side Hedging vs Asset-Side Hedging in Structuring

Leave a Comment
Structuring is a function that sits between Sales and Trading in a typical investment bank. These days its role is becoming closer and closer to coming up with tailor-made solution for clients rather than coming up with fancy structures that it used to be.

There might be two types of clients based on their needs and hence the structures are also classified based on this. There are those corporates who have issued a bond or some other investment vehicle to the investors and expected to make regular cash flows to them. So, they are 'liable' to pay to the clients. These 'liabilities' may be affected by interest rate changes or currency movements or even inflation. When the Structuring Desk in the bank provides solution to hedge these 'liabilities', the structures are said to be 'Liability-Side' Structures.

Similarly there are those clients of the bank who have actually invested in these bonds or other instruments that the various corporates or governments offer. They are expecting cash flows from holding these 'assets'. Again these cash flows might have exposures to interest rate changes or currency movements or inflation or commodity prices, can be anything. They would come to the bank looking for a solution to hedge these exposures. The structures provided by the Structuring desk in this case are called 'Asset-Side' Structures.

Typically there would be more Liability-Side hedges to be provided rather than asset side hedges as the issuers of these bonds want more protection. Investors typically invest in the things they want exposure to and hence they would be less frequent to go about looking for hedges.

Read More...

Tuesday, July 16, 2013

The Intuition for Normal Volatility, LogNormal Volatility and bpVol

Leave a Comment
For a beginner in Finance, it can be quite intimidating to get a basic understanding of how volatility comes into play. It's something not easy to visualize and hence understand. I'll attempt to simplify the concept.

Normal Distribution
A lot of things which move randomly can be approximated to be exhibiting Normality. By this we mean that it may vary in such a way that if we were to calculate a standard deviation, the values in the distribution would fall within 1 standard deviation on both sides, 68% of the time. It would fall within 2 standard deviations on both sides, 95% of the time.

Let's say we have an entity whose value exhibits normality with mean 100 and standard deviation 20. This means that there is a 68% probability that the value of the entity will fall in the range -80 and 120. Further, there is a 95% probability that the value of the entity will fall in the range -60 and 140.

How does it apply to stock markets?
For stocks, it can become a bit tricky as there is a constraint of 0. Stock prices can't fall below zero. Hence, it would be wrong to assume that stock prices exhibit normality. However, we can go one step further and look at the daily stock returns. It has been observed that this tends to behave normally. As daily returns can be negative or positive. Over a period of time we can work out a mean and a standard deviation and this would behave normally. Because now we are not looking directly at the stock prices but the logarithm of stock prices (returns), hence we say that stock prices exhibit log normality meaning their logs exhibit normality.

It can be a bit tricky to understand. Let's say that the mean of returns come out to be 1%. While the standard deviation comes out to be 1.50%. Then this means that there is a 68% probability that the returns would be anywhere between -0.50% (1-1.5) and +2.00% (1+1.5). Further, there is a 95% probability that the next daily return would be anywhere between -2% and 3.5%.

The volatility that we are talking about now is actually the historical volatility. The options market helps us observe the implied volatility base on the option premiums for Calls and Puts. Check out the calculator here. This implied volatility can be quite different than the historically observed volatility value as the implied volatility represents what is currently priced in by the market, depending on market expectations and corresponding supply and demand forces in the options market.

Normalized Vol or bpVol vs Log Normal Vol
Stock markets are actually pretty straight forward when we have some trickier things like Interest rate options. Which Vol do we use there? The concept of volatility actually remains the same. However, it's more about convention in terms of how the market looks at it. Because interest rates are themselves quoted in % terms it can become very confusing to use volatility also in % terms. Secondly, it doesn't make sense to calculate how much 1 standard deviation means in terms of interest rate movements. So, instead of quoting the lognormal vol, often vols are quoted as normalized vols. They are 'normalized' by using the forward rate. Say the 3m USD Libor has a forward rate of 3% and lognormal volatility is 20%. Then,
normalized vol or bpVol = lognormal vol * forward rate
So, normalized vol = 60bps

Because this is often the volatility expressed in terms of basis point movements, it is well known in the market as bpVol. Later when we discuss deeper concepts of Structuring and Trading we'll see how understanding bpVol is very important.
Read More...

Black-Scholes Option Premium and Greeks Calculator

Leave a Comment
I've uploaded my Black-Scholes Option premium and Greeks calculator. It calculate the premium for both call and put options as well as the various first level Greeks.


Feel free to leave comments if you need any clarifications.
Read More...

Monday, July 15, 2013

Non-Fiction Reading List 2013 - 10-Aug-2013

Leave a Comment
Read More...

Reading Plan for Non-Readers

Leave a Comment
I consider myself a non-reader, maybe primarily due to the fact that I haven't read so many fiction novels as people usually tend to read. I have read some works of Jeffrey Archer, John Grisham, Dan Brown and Sir Arthur Conan Doyle, of course. But that list hasn't grown much. I've read a lot of course books being a nerd that I am. I like to believe that I'm on a low information diet. Remember that if you are on a diet, it's not just important that you eat less (consume low information), but you need to make sure that the 'less' that you are consuming is actually nutritious. I've come to like the works of Malcolm Gladwell, Freakonomics Books, Entrepreneurship books and some other non-fiction stuff.

The more one reads, the more knowledgeable he becomes. We need to read all this to know the possibilities around us and that awareness gives us a chance to get inspired and create something of value or just something fun. I, myself, have been so busy lately, working 8-10 everyday and then working on this website that it was very tough to manage reading any book for a long while. However, it's only me to blame as one does what one desires to do. An event happened that put me back to reading. Our internet stopped working! I ended up spending the whole day reading a great book. And now I'm left looking for more good stuff to read.

The Reading Plan

My plan is now to read 1 book every two weeks and try to sustain this throughout the year. I know it doesn't sound very ambition, but that's the point. It's amazing to think how if I had done this just for the past 4 years, I would have read 100 books already and I would be sounding a lot wiser right now. But no worries, we'll get there. 26 books/year at a time. Two weeks is a good amount of time to be able to manage, the important part is just to be regular about it. How will I be regular? I'll just share my reading plan on the website regularly, and hoping it will force me to be on track. I am looking for suggestions though, about which (Non-Fiction) books to absolutely read.
Read More...

5 Reasons Blogger won't be Discontinued by Google

Leave a Comment
The decision to discontinue Google Reader has been quite a surprise to many, and actually an unpleasant one. So was the fate of Buzz. Though Buzz was mildly successful, I'd actually consider Reader to be quite successful. It definitely had a good user base and all the other services seemed to take it from granted, taking all the Google Reader feeds into their system. When it went away, it created a gap in the market all of a sudden. However, Google seems to be very clear about it's strategy on focusing on only that which works and shows continuous growth potential. The other aspect of it was Google's hard push for it's social networking service Google+, in a way forcing users to do what they used to do with Buzz in Google+. It has worked to some extent for sure.

Now coming to Blogging, Google acquired Blogger in 2003. Google has been making small updates to Blogger platform all the time, and I'd actually rate the current experience slightly superior than WordPress when one considers the value for money (or in case of Blogger, no money). When thinking about hosting, it provides a smooth consistent experience without fail. I've hosted 2 websites so far on blogger platform and finding it much easier to control the design and manage the blogs. Though WordPress has been known to be the engine for lots of famous websites, Blogger seems to provide just enough for a budding blogger to get going quickly with enough options for those who want to dive deep into the design.

I don't think it makes sense for Google to make sense in discontinuing blogger for the following reasons:

1. It's definitely among the top 2 now alongside WordPress, and Google wouldn't leave an arena where it still has chance to lead.
2. Without becoming a complete content management solution, blogger has already been very successful. If Google moves further in that direction, it has a chance of easily surpassing WordPress users.
3. Google is itself using Blogger platform to communicate with Googlers at the moment. In lack of a better medium (Google+ maybe), Blogger should continue to exist even if just to run Google's own blog.
4. Adsense has got a major push through Blogger. Blogger continues to be a platform which is helping Google add new Adsense users. Now it may be argued that Google should lower it's Adsense user base and only deal with the 20% that bring in 80% of the revenue. However, the competition is such that Google wouldn't want another Ad platform to succeed in a major way with those 80% users who bring 20% revenue for Google today.
5. Web Hosting. Google now officially provides a way to buy domains (even if through GoDaddy), this puts Google in sort of a contract for providing this service for the users that paid to get that domain and then to host on Google. This would be a big reason that will stop Google from discontinuing it.

So, as of now, it seems Google should continue with Blogger service, however the way it will transform into being more integrated with Google+ is definitely something a lot of people have been long speculating about. We'll know soon enough!
Read More...

Monday, July 8, 2013

How to use Google Web Fonts in Blogger

Leave a Comment
When I first started using blogger, I was quite surprised to see only 7 fonts available to be used. On exploring further, I realized how Google has actually optimized this experience as well. Loading web fonts has some impact on web page loading times and thus performance. And loading only 7 fonts by defaults makes sure that there is no unnecessary performance impact for loading the fonts that end up never being used.

Google has a big library of web fonts. And it's very easy to reference those from within Blogger. This definitely opens up many font possibilities for the web designers.

First go to Google Fonts website.
Choose a font you'd like to use and click on the small 'Quick-use' icon as shown below:

Next you'll be taken to another page where you can select and copy the code as shown in the step 3 below:

1. Log in to your blogger account and open the blog that you want to edit
2. Go to 'Template' on the left.
3. Click on 'Edit HTML'. This will open the entire blogger template code for editing
4. Now search for
<b:include data='blog' name='all-head-content'/>
5. Just paste the code below this line.
6. Now you can use this font anywhere (in css or html code) like below:
font-family: 'Denk One', sans-serif;
Read More...

How to Set/Change Favicon in Blogger [with code]

Leave a Comment
Now that we have customized our template so much that we can't really use the Layout UI anymore, it's time to figure out a way to replace the favicon (the icon on the browser tab next to your website name), with your own little image using just code.

The first step here to upload the image to a public location on the internet. This can be your blog's picasa album where you can also find all the other images that you uploaded to be used in the blog.

Just open the image from there and right click to copy URL.

** Make sure you backup your template before you make this change to it

1. Log in to your blogger account and open the blog that you want to edit
2. Go to 'Template' on the left.
3. Click on 'Edit HTML'. This will open the entire blogger template code for editing
4. Now we need to search (Ctrl + F) for
</head>
5. Insert the following code just above it
<link href='http://www.thezenfund.com/favicon.jpg' rel='icon' type='image/jpg'/>
6. Replace www.thezenfund.com with your own favicon image location. Make sure that the image is 16x16 pixels in size.

Read More...

Saturday, July 6, 2013

How to add 'Share Buttons' to the Post in Blogger [with code]

Leave a Comment
As now we have customized our blog a lot, I don't recommend going to Layouts and editing the 'Blog Posts' widget there to add the share buttons. Though, if you haven't made any customization to the Template HTML, that's the easiest way to go.

** Make sure you backup your template before you make this change to it

1. Log in to your blogger account and open the blog that you want to edit
2. Go to 'Template' on the left.
3. Click on 'Edit HTML'. This will open the entire blogger template code for editing
Remember last time we had edited the code for <b:include data='post' name='post'/>.
4. Now we need to find the last instance of following code.
<b:include data='post' name='post'/>
</b:if>
Note that there might be multiple copies of these lines and we need to find the last one.
5. We need to insert the following code below it
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
    <b:include data='post' name='shareButtons'/>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
    <b:include data='post' name='shareButtons'/>
</b:if>
6. Make sure it looks like this. Then click 'Save Template'.


Read More...

Template Edit HTML vs Layouts UI in Blogger

Leave a Comment
In Blogger, there are two entry points to customize templates. One is Templates, where you can edit the HTML & CSS for the blog, and the other is Layout, which lets you quickly add or delete widgets. Blogger has done a wonderful job at making it simple for beginners to add some widgets and get a professional looking blog ready in minutes. At the same time the Template option is very powerful and if you are a nerd like me, it will keep you occupied and make you feel in control of your blog's look and feel. However, there is a problem.

Template -> Edit HTML
Once we update a template with custom code and have made too many changes, like for this website, it becomes impossible for Layout UI to remain in sync with those changes and display the proper widgets. Now if we just open Layout and save it, it makes some unwanted changes in our HTML. So, it's very important that once we have reached a level of comfort with code we should try to completely avoid using Layouts to control the blog.

We can have another dummy blog where we can try and add things through Layout and copy the code that was generated to our main blog's code, thus avoiding going through Layout page.


Read More...

Wednesday, July 3, 2013

How to Change "Showing Posts with label .. " with Label only in Blogger

2 comments
If you open up the default page for the labels or archives page, typically it shows "Showing Posts with label xyz" at the top. It's not very professional looking and exposes the fact that you are showing filtered content in that webpage which the user definitely doesn't need to know. I'd much rather prefer it to show just the 'Label' at the top, because I think that's all that the reader needs to know.

How to do it?

** Make sure you backup your template before you make this change to it

1. Log in to your blogger account and open the blog that you want to edit
2. Go to 'Template' on the left.
3. Click on 'Edit HTML'. This will open the entire blogger template code for editing
4. (Ctrl+F) to search for <b:includable id='status-message'>. Once you have found this, please select all the code from this line to the immediate next </b:includable> in the code.
5. Replace this code with the following code:
Read More...

Custom Archive/Label Page with Thumbnails and Titles in Blogger

5 comments
In the last post, we discussed how we can replace the label archive page with a simple list of titles for that particular label and strip off the description to make your website more navigable. Today we'll discuss a further modification to that method to make this page a bit more beautiful.

I strongly recommend, that bloggers should add at least one image in every post. This makes definitely makes the UI attractive when you use things like popular posts widget with thumbnails. As you can notice in my website, the core colors are very basic and minimal design. However, this enhances the color of the images that i use, and they get automatically highlighted even when small. This is a very powerful tool, one should use. Silence is indeed the biggest tool in a comedian's toolbox!

Anyways, let's discuss how we can now replace those little arrow signs that we added last time by thumbnails from the posts.

** Make sure you backup your template before you make this change to it

1. Log in to your blogger account and open the blog that you want to edit
2. Go to 'Template' on the left.
3. Click on 'Edit HTML'. This will open the entire blogger template code for editing
4. (Ctrl+F) to search for <b:include data='post' name='post'/>
5. Replace this code with the following code:
Read More...

Tuesday, July 2, 2013

Removing Post Description from Label/Archive Pages in Blogger

Leave a Comment
If you try to see the archive, or open up a label page in a blog (example here), by default you see a long expanded list of blog posts with the whole description pasted there. It's very clumsy to navigate around and find a post that was written even a couple of months back if it is a frequently posted topic. I have found a perfect solution for this problem. If we could just display the titles for the posts in the archive/label page, that would really make it navigable for the reader. Hence, let's discuss how to do it!

** Make sure you backup your template before you make this change to it

1. Log in to your blogger account and open the blog that you want to edit
2. Go to 'Template' on the left.
3. Click on 'Edit HTML'. This will open the entire blogger template code for editing
Read More...