Saturday 28 September 2013

Recipe for a Homemade Coconut Milk Pudding!!!

Want to make a pudding out of Coconut Milk at home? You are at the right place.

I would like to share a recipe I used to make an awesome Coconut Milk pudding this weekend! It is easy and fast; does not take more than 30 minutes!

First off, make sure you have the following ingredients ready!

Ingredients:

1. 200 ml Coconut Milk
2. 100 ml Condensed Milk
3. 4 Eggs
4. 150g Brown Sugar
5. Cardamom
6. 50 ml Water

Now, follow these instructions in the given order and you will have an awesome Coconut Milk Pudding ready to eat!

Instructions:

1. Using a blender, blend 50 ml of water and 150g of Brown Sugar. 
2. Use a blender to beat 4 eggs and add that to the above mixture. Do not beat for too long to avoid the eggs getting cooked.
3.  Add 200ml coconut milk to the above mixture and mix it well.
4. Add 2-3 ground cardamoms.
4. Add 1 drop of vanilla flavor.
5. Using a conventional oven, bake it for 30-35 mins at 190 degrees Celcius
6. Let it cool and refrigerate for 4-5 hours.
7. Ready to eat!


Wednesday 25 September 2013

MATLAB symbolic tool box

I find the symbolic tool box in MATLAB to be very useful. It is possible to do symbolic integration, differentiation, solving equations, simplifying symbolic formulae, etc.


In order to use symbolic functions in this tool box, we should first define symbolic variables. Symbolic variables a, b and c  can be defined as;


syms a, b, c;

Then we define a symbolic function as

f = a^2 + 2b +c;

The above function f, can be passed to symbolic tool box functions such as diff() or int(), to differentiate or integrate, respectively.

For example, function diff() takes two parameters, first the function to differentiate and second the variable with respect to which the function is differentiated. Thus,

diff(f, a) = 2a;
diff(f, b) = 2;
diff(f, c) = 1;

Similarly int() function gives the symbolic integration of a function with respect to thr specified symbolic variable.

simple() is another function that is very handy and I use quite often. simple(f), as its name says, simplifies function f. Another cool function in this tool box is pretty()! pretty(f) formats the way function f is displayed, such that it is more readable and pretty!

Tuesday 3 September 2013

Python code to use Ultrasurf


At times we have the need to access a particular URL or fetch web pages using a program/code.

Suppose we want to perform this action using a proxy server and we would like to use a proxy server that Ultrasurf provides. This can be achieved in many programming languages.

The following code is written in Python Programming Language. In the following we are accessing the URL, http://remotalks.blogspot.ca with the use of the Python module urllib.

The function urlopen in the module urllib accepts two parameters, the URL and Proxy Server Address, respectively. Here 127.0.0.1 is the IP address and 9666 is the default port number of the proxy server created by Ultrasurf.


Check my previous post for more details on Ultrasurf and detailed steps on installing  Ultrasurf in Ubuntu!