Search blog

Showing posts with label Python Programming. Show all posts
Showing posts with label Python Programming. Show all posts

Monday, November 21, 2016

Installing Google Cloud SDK for App Engine using Python 2.7 in Ubuntu 14.04

This tutorial shows you the various steps to successfully install the Google Cloud SDK for App Engine using Python 2.7 in Ubuntu 14.04.

1. First make sure whether you have Python 2.7 installed or not. Open your terminals and enter the following command:

 $ python -V  

You should similar output as this: Python 2.7.6.

2. Download the SDK for App Engine from here: http://bit.ly/2fe0azC. Make sure you select the Python version.

3. Once your file downloads, extract it in any folder of your choice. In our example we will extract it inside the Home directory. Your SDK path in side the home folder should be like:

 ~/google-cloud-sdk/bin  

Note: In Ubuntu ~ represent the Home directory.

4. Remain in your home folder (do not change directory to your SDK folder) and execute the following commands in your terminal.

 ./google-cloud-sdk/install.sh  

You should be getting the following result as shown in the image below:

Click image to enlarge

5. You will be asked the following questions which you may respond as below:


5.1 To help improve the quality of this product, we collect anonymized usage data  and anonymized stacktraces when crashes are encountered.. You may choose to opt out of this collection now (by choosing 'N' at the below prompt), or at any  time in the future by running the following command:

gcloud config set disable_usage_reporting true

Do you want to help improve the Google Cloud SDK (Y/n)?  N

5.2. Modify profile to update your $PATH and enable shell command
completion? (Y/n)
?  Y

5.3. Enter a path to an rc file to update, or leave blank to use
[/home/evagabond/.bashrc]
: just leave blank and hit enter


Iniitialize SDK


Use the gcloud init command to perform several common SDK setup tasks. These include authorizing the SDK tools to access Google Cloud Platform using your user account credentials and setting up the default SDK configuration.

Once you run the initi command, your default browser will open up and you will be asked to sign into your google account. This will be the account connected to your App Engine and various Google Cloud related services. 

6.1. Open up another terminal and run the following command:

 gcloud init  

6.2 Accept the option to log in using your Google user account:

 To continue, you must log in. Would you like to log in (Y/n)? Y  

For further instructions on initialization you may go through the following Google Documentaiton: http://bit.ly/2gsZdrY

Installing App Engine:

 Once you have successfully performed the installations explained above, you can now install the App Engine by running the following command in your terminal (also refer image below). Make sure you are outside your SDK folder else the command wont execute.

 gcloud components install app-engine-go  



To run App Engin: 

 dev_appserver.py app.yaml  

Helpful Resources by Google:

Sunday, December 16, 2012

How to install Django in Windows 7





To Install Python and Django with Xampp on Windows 7: http://www.leonardaustin.com/technical/install-python-and-django-with-xampp-on-windows-7

If the above methods don't work try this:


If the mod_wsgi file is malfunctioning and stopping Apache from loading you may try these mod_wsgi files from here. Please note the correct version before downloading. There are different types here depending upon the OS (32 bit or 64 bit):
http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi

Saturday, November 24, 2012

Advice From An Old Programmer - (a must read)

This is an awesome read I came across yesterday penned by an amazingly talented programmer called Zed Shaw. Here's an excerpt:

"Of course, all of this advice is pointless. If you liked learning to write software with this book, you should try to use it to improve your life any way you can. Go out and explore this weird wonderful new intellectual pursuit that barely anyone in the last 50 years has been able to explore. Might as well enjoy it while you can.

Finally, I'll say that learning to create software changes you and makes you different. Not better or worse, just different. You may find that people treat you harshly because you can create software, maybe using words like "nerd". Maybe you'll find that because you can dissect their logic that they hate arguing with you. You may even find that simply knowing how a computer works makes you annoying and weird to them.

To this I have just one piece of advice: they can go to hell. The world needs more weird people who know how things work and who love to figure it all out. When they treat you like this, just remember that this is your journey, not theirs. Being different is not a crime, and people who tell you it is are just jealous that you've picked up a skill they never in their wildest dreams could acquire.
You can code. They cannot. That is pretty damn cool."
To read more: Advice From An Old Programmer.

Thursday, November 1, 2012

Python Programming #1



So, here's my first post related to Python. Got this wonderful chance to enroll for a course in www.coursera.org with the University of Toronto for a class titled ' Learn to Program: The Fundamentals." It's been five weeks since I joined the class and have been doing pretty good.

But to be candid, I really do not know much about it other than reading a lot of awesome stuffs about it on the internet. Since the past four years I have been more of a 'web guy' dealing with Open Source Stuffs and currently getting my hands strong with Drupal. But don't know without any reason I feel pretty excited about Python and without thinking much have decided to dive deep into it; as much as I can.

Lets see how much posts I can continue to roll out in the upcoming days. & this post shall act as a checkpoint for me to see how far I've traversed in my journey with Python.

Top 5 Posts (Weekly)