If they get changed. What to do?

Hi to all,

I need answers for few questions which I got in my mind.

Why are we using Google, WordPress, Facebook, Twitter and so on…?
My answer to this question, to make use of the feature which has been provided by the company to accomplish my tasks very easily for free of cost.

Recently I noticed in WordPress, they removed the feature called “Install Plugins” from wordpress.com. Beauty of the “Install plugins” feature is we can install any plugin/add-on  in wordpress blog if we have singed up in wordpress, some of the plugins to make the tasks easier are  creating Table of Contents, Code Highlighter, and so..

Now the thing is they removed the feature from wordpress.com and still providing in wordpress.org. So, If i want to utilize this feature I supposed to register my blog in public domain and get support from wordpress.org and then I need to utilize the feature for some amount of cost.

Like that in-case if in future if they noticed that most of the people using wordpress and all of them are depending on wordpress, and if they decided to change everything to some amount of cost, would people withdraw the usage of wordpress? I don’t think so.

Similarly we are using google products like gmail, picasa, groups, and tons more…. If they decided to charge 10$ for creating and maintaining accounts in gmail, then would people like to using that one further? I think at that time they will look for an alternative in-case if they don’t feel the comfortableness on the  new product, am damn sure that they will not hesitate to spend 10$ for an account in gmail.

Here comes my question:   

In future if they changed like above, what will we do…..?
In Otherway, If they stop providing features/products in free of cost and charging for some amount what will we do?

Awaiting for your answers….

Regards,
Balakrishnan V.

Where and when I would use if( __name__ == “__main__”):

Hi,

I’m Confused. pls, Clarify on this

I clearly understood the concept of above statement, but I don’t know where the situation which I can use that __name__ statement effectively. What I have understood on the statement is  python interpreter has some variables by default like that it also have a variable called __name__. During the execution of python files it will assign values to that variable. If it is an stand-alone program execution then the value of __name__ would be “__main__” if python is imported then the value of __name__ would be the file name of the python file.
Example:

#Filename: foo1.py
print “Value of __name__ Variable:  ”+__name__

if I execute the above file.
Execution: python foo1.py

Output is:

Value of __name__ Variable:  __main__

Whereas if I execute the file as module by importing (i.e.)

#Filename: foo2.py
import  foo1

print “I am foo2”

Execution: python foo2.py

Output:

Value of __name__Variable: __foo1.py
I am foo2

Now, my question is,  if(__name__ ==”__main__”): statement used only to identify whether it is main program or stand-alone program. Isn’t it? Am I correct? Pls clarify more……

Regards,
Balakrishnan V.