Recent Posts
Google testing new Cloud servers based storage service for common masses and image of the Drive leaks out on the Internet.
Google seems to be very close to launching its cloud storage service. According to a website, the Google Drive has been quietly enabled for select users and is being privately tested.
Google is set out to compete with the Cloud servers based storage services providers such as Dropbox, Microsoft SkyDrive, Amazon's Cloud Drive and Apple iCloud. The Google Drive interface, as was shown in the report, is very similar to that of the new Gmail for desktop.
Google seems to be very close to launching its cloud storage service. According to a website, the Google Drive has been quietly enabled for select users and is being privately tested.
Google is set out to compete with the Cloud servers based storage services providers such as Dropbox, Microsoft SkyDrive, Amazon's Cloud Drive and Apple iCloud. The Google Drive interface, as was shown in the report, is very similar to that of the new Gmail for desktop.
A screenshot of the cloud storage service, mentioned in the report, shows a list of documents with an option to install the Google Drive. This could be for both desktop client and also for mobile phones. Google Drive will allow users to upload and store the documents as well as files to make them accessible from anywhere on any device with Internet connectivity.
Apparently, even the favicon and the logo of the Google Drive has been circulating on Google+ social network since quite a while.
The Google Drive is expected to be announced formally at the Google I/O Conference scheduled to take place from June 27-29 later this year. As of now, there is no detail whether this service will be desktop exclusive feature or will support the Android smartphones through a separate native App as well.
Image of Google Drive leaked online
Desktop Google, feature, Google, Google cloud, Storage / Posted 5:00 AM 0 comments
You will soon be able to store files as large as 5GB online instead of in PC hard drives after Google launches its "GDrive".
A Google source wrote on the blog "The Next Web" that the company is planning to launch the service mid-next week.
The service will offer 5GB of storage, and appear as an icon on Windows and Mac desktops into which users simply "drop" files, the Daily Mail reported Wednesday.
The service will be a rival to services such as Dropbox, a "cloud" storage start-up recently valued at $4 billion. A Google spokesperson declined to comment on the leak.
The company has long been rumoured to be working on such a service.
Google has spoken about launching a "G Drive" service in the past, but the company has been tight-lipped on the subject recently.
A Google source wrote on the blog "The Next Web" that the company is planning to launch the service mid-next week.
The service will offer 5GB of storage, and appear as an icon on Windows and Mac desktops into which users simply "drop" files, the Daily Mail reported Wednesday.
The service will be a rival to services such as Dropbox, a "cloud" storage start-up recently valued at $4 billion. A Google spokesperson declined to comment on the leak.
The company has long been rumoured to be working on such a service.
Google has spoken about launching a "G Drive" service in the past, but the company has been tight-lipped on the subject recently.
The process of creating code to run web sites involves writing code to provide various services. The code to provide a particular service often works the same way regardless of the complexity or purpose of the web site in question. Abstracting these common solutions into reusable code produces what are called “frameworks” for web development. Perhaps the most well-known framework for web development is Ruby on Rails, but Python has its own frameworks. Some of these were partly inspired by Rails, or borrowed ideas from Rails, but many existed a long time before Rails.
Originally Python web frameworks tended to incorporate all of the services needed to develop web sites as a giant, integrated set of tools. No two web frameworks were interoperable: a program developed for one could not be deployed on a different one without considerable re-engineering work. This led to the development of “minimalist” web frameworks that provided just the tools to communicate between the Python code and the http protocol, with all other services to be added on top via separate components. Some ad hoc standards were developed that allowed for limited interoperability between frameworks, such as a standard that allowed different template engines to be used interchangeably.
Since the advent of WSGI, the Python web framework world has been evolving toward interoperability based on the WSGI standard. Now many web frameworks, whether “full stack” (providing all the tools one needs to deploy the most complex web sites) or minimalist, or anything in between, are built from collections of reusable components that can be used with more than one framework.
The majority of users will probably want to select a “full stack” framework that has an active community. These frameworks tend to be well documented, and provide the easiest path to producing a fully functional web site in minimal time.
Originally Python web frameworks tended to incorporate all of the services needed to develop web sites as a giant, integrated set of tools. No two web frameworks were interoperable: a program developed for one could not be deployed on a different one without considerable re-engineering work. This led to the development of “minimalist” web frameworks that provided just the tools to communicate between the Python code and the http protocol, with all other services to be added on top via separate components. Some ad hoc standards were developed that allowed for limited interoperability between frameworks, such as a standard that allowed different template engines to be used interchangeably.
Since the advent of WSGI, the Python web framework world has been evolving toward interoperability based on the WSGI standard. Now many web frameworks, whether “full stack” (providing all the tools one needs to deploy the most complex web sites) or minimalist, or anything in between, are built from collections of reusable components that can be used with more than one framework.
The majority of users will probably want to select a “full stack” framework that has an active community. These frameworks tend to be well documented, and provide the easiest path to producing a fully functional web site in minimal time.
import urllib, urllib2, cookielib
username = 'myuser'
password = 'mypassword'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
login_data = urllib.urlencode({'username' : username, 'j_password' : password})
opener.open('http://www.example.com/login.php', login_data)
resp = opener.open('http://www.example.com/hiddenpage.php')
print resp.read()
resp.read() is the straight html of the page you want to open, and you can use opener to view any page using your session cookie.
Introduction
OK! We have python installed, now what? Well, we program!And it is that simple (at least for now). Python makes it easy to run single lines of code - one-liner programs. Lets give it a go.
Opening IDLE
Go to the start menu, find Python, and run the program labelled 'IDLE' (Stands for Integrated Development Environment.Now you are in the IDLE environment. This is the place you will be spending most time in. Here you can open a new window to write a program, or you can simply mess around with single lines of code, which is what we are going to do. Type the following and press enter: (don't type >>> as it should already be there)
Code Example 1 - Hello, World!
>>> print "Hello, World!"
Math in Python
Now try typing the stuff in bold. You should get the output shown in blue. I've given explainations in brackets.Code Example 2 - Maths
>>> 1 + 1 2 >>> 20+80 100 >>> 18294+449566 467860 (These are additions) >>> 6-5 1 (Subtraction) >>> 2*5 10 (Multiply, rabbits!) >>> 5**2 25 (Exponentials e.g. this one is 5 squared) >>> print "1 + 2 is an addition" 1 + 2 is an addition (the print statement, which writes something onscreen) >>> print "one kilobyte is 2^10 bytes, or", 2**10, "bytes" one kilobyte is 2^10 bytes, or 1024 bytes (you can print sums and variables in a sentence. The commas seperating each section are a way of seperating clearly different things that you are printing) >>> 21/3 7 >>> 23/3 7 >>> 23.0/3.0 7.6666... (division, 2nd time ignoring remainder/decimals, 3rd time including decimals) >>> 23%3 2 >>> 49%10 9 (the remainder from a division)
Table 1 - Python operators
| command | name | example | output |
| + | Addition | 4+5 | 9 |
| - | Subtraction | 8-5 | 3 |
| * | Multiplication | 4*5 | 20 |
| / | Division | 19/3 | 6 |
| % | Remainder | 19%3 | 5 |
| ** | Exponent | 2**4 | 16 |
Remember that thing called order of operation that they taught in maths? Well, it applies in python, too. Here it is, if you need reminding:
- parentheses ()
- exponents **
- multiplication *, division \, and remainder %
- addition + and subtraction -
Order of Operations
Here are some examples that you might want to try, if you're rusty on this:Code Example 3 - Order of Operations
>>> 1 + 2 * 3 7 >>> (1 + 2) * 3 9
In the second example, the computer calculates 1 + 2 first, then multiplies it by 3. This is because parentheses (brackets, like the ones that are surrounding this interluding text ;) ) have the higher priority (at 1) and addition comes in later than that.
Also remember that the math is calculated from left to right, UNLESS you put in parentheses. The innermost parentheses are calculated first. Watch these examples:
In the first example, 4 -40 is calculated,then - 3 is done.Code Example 4 - Parentheses>>> 4 - 40 - 3 -39 >>> 4 - (40 - 3) -33
In the second example, 40 - 3 is calculated, then it is subtracted from 4.
Comments, Please
The final thing you'll need to know to move on to multi-line programs is the comment. Type the following (and yes, the output is shown):Code Example 5 - comments
>>> #I am a comment. Fear my wrath! >>>
Code Example 6 - comment examples
>>> print "food is very nice" #eat me food is very nice (a normal output, without the smutty comment, thankyou very much) >>># print "food is very nice" (nothing happens, because the code was after a comment) >>> print "food is very nice" eat me (you'll get a fairly harmless error message, because you didn't put your comment after a hash)
The tutorials
on this page are aimed at people who have previous experience with
other programming languages (C, Perl, Lisp, Visual Basic, etc.). Also of
potential interest are such related Beginners Guides as BeginnersGuide/Overview and BeginnersGuide/NonProgrammers, and the tips in MovingToPythonFromOtherLanguages.
- Python Tutorial This tutorial is part of Python's documentation set and is updated with each new release.
- Basic to Advanced Tutorial A good tutorial on Python especially for the beginners.
- Python Essential Reference (book) If you want a highly compressed K&R-style 'just the facts' overview, David Beazley's "Python Essential Reference" covers practically all of the language in about a hundred pages.
- Wikiversity:Python The Wiki(anything) information about Python.
- Instant Python A minimal crash course by Magnus Lie Hetland.
- Google's Python Class - Google's Python tutorial for "people with a little bit of programming experience"
- Python 2 & 3 Quick-Guides A fast and efficient guide, with many examples, for quickly learning many tricks of Python.
- Python Programming for Beginners A short introduction to writing command-line applications in Python by Jacek Artymiak.
- Python 101 - Beginning Python and Python 201 - (Slightly) Advanced Python Two self-training courses from Dave Kuhlman. Python 101 introduces the basic data types, and 201 covers particular tasks such as parsing text and writing unit tests.
- Python Short Course A set of course slides by Richard P. Muller of Caltech that are aimed at scientific users. For example, the first example is a script to process output from a quantum chemistry simulation.
- Python for Science Course material written by Konrad Hinsen for an introduction to Python aimed at biologists.
- Software Carpentry: lectures aimed at scientists and engineers.
- You can find a variety of Python tutorials on Code Teacher.
- ComparingTypes A quick look at some common programming types for python and other languages
- Python for Programmers - for "Professional programmers who need to learn Python "
- A basic Python Tutorial that goes into some interesting features and examples.
- Python Koans Learn Python through TDD
- Intro to Python - A Brief Presentation about Python mainly aimed at experienced programmers. Might be nice as a first pass over the language.
- Python Course - This online Python course is aiming at beginners and with advanced topics at experienced programmers as well.
Python Video Tutorials
- TheNewBoston Python Tutorials Recommended for novice programmers.
- 'Getting started with Python' blog series at ShowMeDo, includes articles on 'Python Development Environments' and 'Python Under-The-Hood'
- ShowMeDo.com/videos/Python: Over 240 Python programming screencasts, most are free, most are a part of Club ShowMeDo, all will teach you about Python programming:
- Python 101 - easygui and csv - Aimed at new/intermediate Pythonistas showing how to build a full application in Python (part of the Club)
- Python Development on XP (9 videos, part of the Club) Aimed at new/intermediate Pythonistas
- A Guide to Python Resources on the Web (2 videos)
- Einführung in die Programmierung mit Python (14 videos - German)
- Python GUI Programming with wxPython (3 videos)
- The Khan Academy computer science playlist teaches Python.Copied from http://docs.python.org/devguide/
-
Recent Comments
-
Feature Posts




