background preloader

Try Python: Interactive Python Tutorial in the Browser

Try Python: Interactive Python Tutorial in the Browser
Related:  Getting started with Python

65 New and Creative Portfolio Website Designs for Inspiration Portfolio is the reflection of one’s work and skills; any potential employer actually goes through your portfolio and sees your previous designs and work you have done. Going over your portfolio he decided to either hire you or not. Most employers search on the net; those portfolios which have something different to offer will get noticed and consequently will be hired. Starting your first online portfolio can spark many questions and anxieties. Popular Portfolios document all “stories” previous work and inclinations of the designer. Fresh and Creative Portfolio Website Designs We spent last few weeks to compile this list of highly beautiful, creative and most importantly inspirational portfolio designs over web which might help you to get inspired with their past work and gives you bright directions for your next project. Ghosthorses Niek Dekker Wants to be Great Willviles Afar25 Gustav Arnetz Teptek Rosielees Zync Philippe Hong Morten Claussen Kantt Whiteboard Signaturecreative Subsens Smart GC Djnr

A Note on Python Paths This time I decided to share some knowledge about Python paths which seemed a little bit confusing to me in the beginning of diving into Python. I am working with Django in different platforms like Mac OS X, Windows, and Linux, therefore the common patterns how to activate new python modules in all of those environments should be familiar to me. Python modules are either *.py files or directories containing __init__.py . For example, if you can run the following, then django is under your python path. python >>> import django Stay tuned to get deeper into python paths. Installing modules If a module is installable, usually all you need to do is to extract its setup directory, cd to it, and run python setup.py install This will copy the module into the site-packages directory of the current python installation. python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" Or you can use PEAK EasyInstall for installing python modules even faster. Sym-linking *.pth files or

Watch PyCon US Videos - 2009, 2010, 2011 Episodes About this original series PyCon is an activity of the Python Software Foundation, a 501c3 non-profit organization. To support future conferences, please donate to the Foundation at www.python.org/psf/donations . Video and audio material from PyCon are licensed under the Creative Commons CC-BY-NC-SA license . Episodes of Maciej Fija? Cosmin Stejerean Python makes it easy to develop great web applications. William Kahn-Greene Carl Karsten William Kahn-Greene Carl Karsten By Carl Meyer Yannick Gingras Montreal-Python is a user-group formed in 2007.

Online Python Tutor - Learn programming by visualizing code execution HTML5 Drag and Drop Multiple File Uploader HTML5 Drag and Drop Multiple File Uploader Our new article is going to tell you about HTML5 file upload. Yes, I explained basics of html5 file upload in the past (in one of our previous articles), but today I would like to give you another example, the better one. Here are our demo and downloadable package: Live Demo download in package Ok, download the sources and lets begin ! Step 1. As the first – html markup: index.html As you can see, it consists of several main elements: ‘Drop area’ at the left and ‘Info block’ at the right. Step 2. css/main.css Now, its time to customize our layout: Step 3. js/script.js Most of code is already commented. Step 4. upload.php Its server-side file. Conclusion Hope this helped to you! If you enjoy our articles, feel free to share our tutorials with your friends.

Using .pth files for Python development Python's site module is responsible for setting up the interpreter's environment upon startup. One of the things it does during startup is scan your site directories (typically just site-packages , but framework builds for Mac OS X have an additional undocumented default location) for .pth files. .pth files are used to add additional locations sys.path , and they are typically created by distutils setup scripts that use the (still undocumented) extra_path argument. .pth files are a great alternative to using the PYTHONPATH environment variable: You don't have to screw with your environment (which can be difficult on Mac OS X and Windows). The effect is localized to a particular Python installation. For pure Python ("purelib" in distutils terminology) packages, I create a .pth file that points straight at the source directory, which means I don't have to bother with the distutils setup script when I modify the code. py2app.pth docutils.pth PyObjC.pth ctypes.pth hack1.pth hack2.pth hack2.py

Débuter avec Python au lycée The Python Tutorial Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation. The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). This tutorial introduces the reader informally to the basic concepts and features of the Python language and system.

Tips in Designing a Functional Website Archive In designing a website, it involves considering parts that will be displayed to the readers and users. It is also important to have a user experience design to make sure that it can be used by the readers easily. Part of a website is the website archive. Archive refers to past posts and articles in a certain site. But most the time, the website archive is not really getting too much attention even in the design stage. 1. Image: Narfstuff Do not hesitate to be creative for your archive area whether it is an entire page or just a little portion. 2. Image: Naldz Graphics You do not have to place your archive in a single list. 3. Image: Pearsonified It would be useless if you have an archive but will not be found by the readers. 4. Image: Design Sponge If you are not using a separate page for your archive, you have to make sure that the users can clearly see that you have an archive in a certain area. 5. Image: regadenzia Offer different view options for the readers. 6. Image: Cut and Taste Ads

Python progression path - From apprentice to guru Non-Programmer's Tutorial for Python 3 Authors Contributors to this book Front matter Initial remarks Intro Installing and using Python – where to get help Hello, World The famous first program – screen output – variables – numbers and calculations Who Goes There? Interactive input – strings Count to 10 while loops Decisions if statements Debugging Finding out what goes wrong Defining Functions Structuring programs with the use of functions Advanced Functions Example (Almost) mind-blowing example of how programmers can think Lists Variables containing more than one value For Loops A second kind of loop Boolean Expressions Computer logic – True and False – and and or – not Dictionaries Variables containing key/value pairs Using Modules Extensions to the standard set of functionality More on Lists Using elements or parts of lists Revenge of the Strings More advanced text manipulations File IO Reading from files and writing to files Dealing with the imperfect How to handle errors Recursion Recursive Functions Intro to Object Oriented Programming in Python 3 The End

Python Programming Language – Official Website CSS Sprites Revisited I’m pretty confident that I won’t surprise anyone here by saying that CSS sprites have been around for quite a while now, rearing their somewhat controversial heads in the Web development sphere as early as 2003. Still, the CSS sprite hasn’t truly found its way into the everyday toolkit of the common Web developer. While the theory behind CSS sprites is easy enough and its advantages are clear, they still prove to be too bothersome to implement, especially when time is short and deadlines are looming. Barriers exist to be breached, though, and we’re not going to let a couple of tiny bumps in the road spoil the greater perks of the CSS sprite. If you want more background information on best practices and practical use cases, definitely read “The Mystery of CSS Sprites: Techniques, Tools and Resources1.” If you’re the defensive type, I would recommend “CSS Sprites: Useful Technique, or Potential Nuisance? I won’t take a stance on the validity of CSS sprites. Preparing The Sprite Link 1. 2.

Related: