Wednesday, December 31, 2008

Rottweiler

The Rottweiler, or Rottweil Metzgerhund, is a large dog breed originating in Germany as a war and herding dog. It is a hardy and very intelligent breed. Early Rottweilers worked as beasts of burden, carrying wood and other products to market. During the first and second World Wars, Rottweilers were put into service as war time guard dogs. Currently they are frequently used as guard and police dogs.











In the US, the Rottweiler is the number two breed of dog named in fatal human attacks from 1979 to 1998 in a report by the CDC (Center for Disease Control and Prevention).



Rottweilers are a powerful breed with well developed genetic guarding and herding instincts, and prey drive. Dangerous behavior in Rottweilers potentially results from irresponsible ownership, abuse, neglect, or lack of socialization. This tendency may extend towards other animals as well. Because of their size, power and weight, an aggressive rottweiler can cause a higher level of damage than a smaller, weaker dog.







Happy New Year 2009



Auckland, New Zealand was the first place to celebrate the New Year with amazing fireworks.



Here is the first pic of the celebrations in Australia. A spectacular fireworks show from Sydney Harbour Bridge has marked the start of the new year in Australia. A record crowd of up to 1.5 million Australians and tourists watched a massive New Year's Eve fireworks display alongside Sydney's world-famous Opera House.



Vienna



London



Poland



Berlin



Lithuanian



Vietnam



Malaysia



Singapore

Tuesday, December 30, 2008

Pics







Some pics that I clicked while trekking

Rangaswamy and the Tiger

This is one of the funniest poems I've read till date. Hope you guys too have a good laugh

Deep in jungle I am went
On shooting Tiger I am bent

Bugger Tiger has eaten wife
No doubt I avenge poor darling's life

Too much quiet, snakes and leeches
But am not fearing these sons of beeches

Hearing loud noise I am jump with start
But noise is coming from damn fool heart

Taking care not to be fright
I am clutching rifle with eye to sight

Should Tiger come I will fall him down
Then like hero return to native town

Then through trees I am espying one cave
I am telling self - "Rangaswamy be brave"

I now proceed with too much care
From nonsense smell of this Tiger's lair

My leg is shake, I start to pray
I think I shoot Tiger some other day

Turning round I am going to go
But Tiger giving bloody roar

He bounding from cave like shooting star
I commend my soul to my Ma

Through the jungle I am went
Like bullet with Tiger hot on scent

Mighty Tiger rave and rant
Rangaswamy shit in pant!

Must to therefore leave the jungle
Killing Tiger one big bungle!!

I am telling that never in life
I will risk again for damn fool wife.

Bose-Einstein Condensate And State Of Samadhi

Matter and energy are interconvertible. Matter is present in various energy states that are temperature-dependent. The higher the temperature, the greater the energy. Water boils when it is heated to higher temperatures. This increases the disorder in the molecules as they are energised. This is entropy. It represents the excitability and chaos of the molecules that constitute matter.

Satyendra Bose proposed to Einstein that if matter was cooled to very low temperatures —
to Absolute Kelvin or minus 273 degrees — then its entropy should decrease and matter should come down to a zero-energy state. This was proved later on. This zero-energy state is now known in physics as the Bose-Einstein condensate. This state of matter is also called a super atom as the entire mass behaves as if it were a single atom. It loses all its characteristics of shape, charge and polarisation. It probably reverts to a shapeless, attributeless phenomenon in a de-evolution, reverting to just the potential to manifest as anything.

The human brain is an aggregate of nearly 100 billion neurons. Thoughts that constantly crowd our minds are the sum total of simultaneous activity of different neurons. There is chaos in our waking state. The thoughts translate into various biological changes mediated by the hormonal apparatus at the pituitary interfacing system. The complex interconnections that abound in the nervous system ensure that even a small impulse rapidly spreads.

Some individuals have innate higher entropy levels and so find it harder to concentrate. They are ‘distracted’ easily. They have fleeting thoughts and are very restless. The sensory organs serve as an important pathway to increase the entropy
as they stimulate various neuronal circuits adding to the entropy. Therefore, closing the eyes helps in the process of concentration. Continuous stimulation of the neural networks happens in the waking state. Hence sleep is necessary for minimising these constant excitatory inputs. Sleep deprivation leads to fatigue of the neural networks.

When you concentrate, there is a resultant decrease in the disorder of the neural system. As concentration increases, the tendency of the mind to waver and scatter decreases. The mind is more sharply focused. So when
we concentrate, we are increasing the synchronicity of a specific group of neurons and silencing unrelated neuronal activity. In scientific parlance, concentration decreases the entropy of the neuronal apparatus. Just as the entropy of matter drops to near-zero levels when we approach Absolute Kelvin, similarly, the neuronal disorder keeps waning as we concentrate. The neuronal firing decreases in amplitude as well as frequency. So would the propagation across various networks.

In the waking state, when you consciously attempt to decrease the entropy of the nervous system, it is referred to as meditation. As the entropy of the neurons keeps decreasing, a state of calmness is perceived. As this progresses further, the neurons start becoming synchronous. That is, they neither modulate nor amplify any incoming signal. They just resonate in harmony. As this orchestra gets more in sync, you experience varying states of bliss and happiness. Till what is presumably the final state of zeroentropy, where all 100 billion neurons function in total unified quantum coherence. The Bose-Einstein condensate equivalent of the neuronal system is what may be termed as Samadhi.

Easy PHP templates

Here I want to describe one of the easy ways of separating code from layout-design. Say we have a "index.php" file and there is html+PHP code in it(which we want to separate to make it, as minimum, easy for the designer and the programmer work on design and program code without mixing them and giving them the ability to work at the same time [assuming that the structure of web site is made -- that gives both of them the ability to work on their respective files without waiting for the other to finish]).

Depending on some parameter (say page_id), the site displays different pages (these pages are saved in the folder "pages". Depending on the project these pages may be data/text saved in a database like MySQL). We have two pages "page1.html" and "page2.html" (if page_id is 1, then "index.php" loads "page1.html" and echos it where the content has to be displayed and if page_id is equal to 2 "index.php" loads "page2.html" and echos the content to be displayed). So at this moment we have file tree which would look like this:

\root
|
|-\pages
| |-page1.html
| |-page2.html
|
|-|index.php

The code in "index.php" at this moment could be the index page for the site having a front end consisting of menu div and content div where the pages are loaded:

<div id="menu">
<a href="?page_id=1">page1</a>
<a href="?page_id=2">page2</a>
</div>
<div id="content">

<? php
$page = $_GET['page_id'];

$pages[1] = "pages/page1.html";

$pages[2] = "pages/page2.html";

require_once($pages[$page]);
?>

</div>


As you can see if the layout and php code logic gets more complex it becomes difficult to navigate through code plus the coding and design process synchronization becomes more and more complex. Suppose the designer added couple of div's (for some added content, navigations, etc) and the php code has to be moved or edited to fit the changes made, the Designer has to watch out not to mess up the php code and then the php coder has to navigate again in the html page code again and then edit the php code to fit the changes.

On the other hand if you'd be using a system where the code and design are separate, there would be only one php line in design file( echo $content ). You put what you want in the variable $content and then the php line( echo $content) in design file would echo it in (Would display the content that the variable stores. For the designer, now it's easier to move a singe php line instead of huge pile of php scripts through html file).

After separating code and design from index.php we'll have:


\root
|
|-\pages
| |-page1.html
| |-page2.html
|
|-|index.php
|-|index.t.php

We'll put all HTML in the "index.t.php" and put the php tags (which acts as placeholders where the page content will be displayed. In our case echo $content) which will echo HTML generated in index.php before loading "index.t.php" and sending it to browser.

Here is the logic:

1. index.php gets parameters
2. index.php depending on parameter i.e (page_id) value loads page content in the buffer, then in a variable say $page_content.
3. index.php asignes $page_content value to $content.
4. index.php loads template file.
5. in index.t.php echo's $content i.e echoes the page content and the page is sent to browser.

Now index.t.php looks like:

<div id="menu">
<a href="page_id=1">page1<a href="?page_id=2">page2</div>
<div id="content">
<?php echo $content;?>
</div>

And the index.php:

<?php
$page = $_GET['page_id'];
$pages[1] = "pages/index1.html";
$pages[2] = "pages/index2.html";

ob_start(); //The content from including the $pages[$page ] is sent to the buffer

include_once $pages[$page];

$content = ob_get_contents(); //The content from page (saved in buffer) is saved in the variable $content

ob_end_clean();

include_once 'index.t.php'; //The template file is loaded and the content sent

?>