Showing posts with label about. Show all posts
Showing posts with label about. Show all posts

Monday, February 8, 2016

A ballet about automata Coppélia

At the weekend I went to see The Royal New Zealand Ballet perform Coppélia. What can that possibly have to do with a blog about computing? Well, the story of Coppélia involves a love-struck young couple who find themselves in the house of a Dr. Coppélius, who makes automata. The young couple fool him into believing that his greatest creation, a beautiful female automata called Coppélia, has come to life. So this is a ballet from 1870 about an AI. The music was lovely, the sets beautiful and the dancing amazing. Highly recommended. You can read reviews of the show here.

from The Universal Machine http://universal-machine.blogspot.com/

IFTTT

Put the internet to work for you.

Turn off or edit this Recipe

Read More..

Monday, April 14, 2014

All About User Defined Functions in PHP

User-Defined Functions in PHP


So far we’ve been using PHPs built-in functions to do our tasks; we also
declared and used user-defined function in the post Creating
a Simple Visitor Counter in PHP
. However, we didn’t discuss much
about them. For those of you who are curious to know more about user-defined
functions or those who’d doubts, I’ve written this post. Read along
to know more about user-defined functions.


Declaring functions


In PHP functions are declared using the keyword ‘function’ as below:


function func-name(arg-list)


{

    
…

}


Here ‘arg-list’ may be empty if you don’t want the function
to take any arguments.


If you remember from the post Creating
a Simple Visitor Counter in PHP
, we’d stated that no matter whether
the function returns a value or not, no return type has to be specified for
the function (unlike C/C++).


a. Functions having parameters


function myfunc($a)


{

    echo 
$a;


}


b. Functions returning values


function myfunc($a)


{

    return 
2*$a;


}


Scope of variables inside and outside of function




  1. Variables declared inside a function are called local variables and re
    only accessible within the function.




  2. Variables declared outside functions are called global variables STILL
    they are NOT directly accessible from inside functions.




Have a look at the following code:




function 
myfunc()


{

    
$a=10;


}

echo 
$a;


//$a will not be accessible




//for global varaible

$a=10


function myfunc2()


{

    
//again $a not accessible


    
echo $a;


}



There is nothing we can do to make local variables accessible outside the
function however global variables can be made accessible inside functions by
explicitly defining that particular function as ‘global’ inside
the function.


$a=10


function myfunc2()


{

    global 
$a;


    
//now $a=10 is accessible


    
echo $a;


}



Naming functions




  1. Two functions cannot have the same name neither your functions can have
    the same name as an existing function. PHP DOES NOT SUPPORT FUNCTION OVERLOADING.




  2. Function name may have letters, digits and underscores.




  3. Function name cannot begin with a digit.




  4. Functions can be of the same name as a variable though.




Previous Articles:


Read More..

Thursday, April 10, 2014

All About Massage Houston Provides

By Jerri Perry


Body rub down is essentials and this explains the reason why it is practiced all over the world. Experts have come up with various styles for this exercise. However, some people prefer doing it at home to getting a professional to rub down their bodies. It feels so good to have your loved one rub down your body. However, it is good to note that the touch of a professional is equally essential. Consider visiting such a Massage Houston expert at least thrice every week.

Those who have decided to have a rub down have a story to tell. It has several benefits which cannot be ignored at any one given time. There are several benefits that are attached to the practice. Once you have an expert, he or she knows how to do it in a way that you will enjoy. It is mostly done when the client is lying down. The professional then works on your muscles thus offering a feeling of relaxation.

Most people wonder the best style to use while carrying out this exercise. There are various styles based on where it is being carried out and many other factors. The best style to apply will depend on the reason why one is doing this exercise. This means that the style used for those who want to relieve stress is different from the one used for reducing the effects of a disease like cancer. The styles range from long strokes to short strokes.

There are several health benefits of regular rub down. Doctors advise people to live healthy by relying on regular rub down. Most people have their bodies rubbed down due to medical reasons. Others do it for relaxation purposes and for pampering. Whichever reason you have, consider getting a professional rubdown. Here are some benefits of kneading.

After going through this exercise, one feels relieved. That is the reason why people who feel stressed opt for this option because it helps relieve stress. The expert helps you to relax your muscles and tension. This is done through working on body muscles and tissues paying attention to head muscles. Thus, after a long day at work, get a rub down to relax.

Another health benefit is relieving of lower back pains. Back pains may result due to many reasons. However, in most cases it occurs due to having a tired day at work. However, in case the pain is too much, an expert is needed for it may be a chronic problem.

Anybody ailing of blood pressure ought to undertake a rub down. This is something that even doctors recommend to their patients. Doing so helps to balance the level of blood pressure and stabilize the health of the patient. This way, the patient recovers gradually.

Kneading boosts immunity. It gives your immune system boost because it increases activity levels for your natural killer cells. These cells normally fight with viruses and tumor. For pregnant women, Massage Houston has improves the immunity of the unborn child. With all these benefits, you must not ignore




About the Author:



Read More..
 
Copyright 2009 Information Blog
Powered By Blogger