background preloader

The Art and Craft of Programming - Vimperator

The Art and Craft of Programming - Vimperator

Learn Python - Free Interactive Python Tutorial The way of the program Buy this book at Amazon.com The goal of this book is to teach you to think like a computer scientist. This way of thinking combines some of the best features of mathematics, engineering, and natural science. The single most important skill for a computer scientist is problem solving. On one level, you will be learning to program, a useful skill by itself. 1.1 The Python programming language The programming language you will learn is Python. There are also low-level languages, sometimes referred to as “machine languages” or “assembly languages.” The advantages are enormous. Due to these advantages, almost all programs are written in high-level languages. Two kinds of programs process high-level languages into low-level languages: interpreters and compilers. A compiler reads the program and translates it completely before the program starts running. Python is considered an interpreted language because Python programs are executed by an interpreter. 1.2 What is a program? input: output: math:

Python data tools just keep getting better Here are a few observations inspired by conversations I had during the just concluded PyData conference 1 . The Python data community is well-organized: Besides conferences ( PyData , SciPy, EuroSciPy ), there is a new non-profit ( NumFOCUS ) dedicated to supporting scientific computing and data analytics projects. The list of supported projects are currently Python-based, but in principle NumFOCUS is an entity that can be used to support related efforts from other communities. It’s getting easier to use the Python data stack: There are tools that facilitate the dissemination and sharing of code and programming environments. IPython 2 notebooks allow Python code and markup in the same document. Notebooks are used to record and share complex workflows and are used heavily for (conference) tutorials. Large-scale data processing and wrangling tools have improved: Pandas and PyTables are already popular, and there was very strong interest in the forthcoming Blaze project at the conference.

Online Python Tutor - Learn programming by visualizing code execution - Vimperator Choosing the best touring bicycle (updated January 2013) | Northern Walker Non-touring cycling friends often ask me: ‘What’s the best touring bicycle you can buy?’ In many respects, it’s a hard question to answer as the choice of bike hinges on so many factors, not least the kind of journeys you are planning to undertake. In many cases, the bike in your garage or shed will do. For the purposes of this post, though, I will focus on the ‘dedicated’ touring cycle, which can be loosely categorised as ‘traditional touring cycles’, ‘expedition touring cycles’ and ‘others’ – including folding bicycles for touring. Not intended to be a definitive list, it does feature models that are available for purchase in the UK. I thought it was about time I updated this post as it it generates so much traffic on this site. And if this isn’t enough to satiate your touring bike appetite, check out this site. Traditional touring cycles Dawes Galaxy £1,149 For many the quintessential touring cycle, it fell out of favour for a while due to concerns over frame quality. But why Titanium?

s Python Class - Educational Materials Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding. These materials are used within Google to introduce Python to people who have just a little programming experience. The first exercises work on basic Python concepts like strings and lists, building up to the later exercises which are full programs dealing with text files, processes, and http connections. The class is geared for people who have a little bit of programming experience in some language, enough to know what a "variable" or "if statement" is. To get started, the Python sections are linked at the left -- Python Set Up to get Python installed on your machine, Python Introduction for an introduction to the language, and then Python Strings starts the coding material, leading to the first exercise.

16 Linux Server Monitoring Commands You Really Nee... - Input Output - (Private Browsing) Want to know what's really going on with your server? Then you need to know these essential commands. Once you've mastered them, you'll be well on your way to being an expert Linux system administrator. Depending on the Linux distribution, you can run pull up much of the information that these shell commands can give you from a GUI program. SUSE Linux , for example, has an excellent, graphical configuration and management tool, YaST , and KDE 's KDE System Guard is also excellent. However, it's a Linux administrator truism that you should run a GUI on a server only when you absolutely must. This also means that you should only start a GUI on a server when it's required; don’t leave it running. If your server starts by booting into a graphical desktop, you need to change this. Once there, find the initdefault line and change it from id:5:initdefault: to id:3:initdefault: If there is no inittab file, create it, and add the id:3 line. iostat meminfo and free cat /proc/meminfo mpstat netstat nmon

The Python Tutorial — Python v2.7.5 documentation 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 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. For a description of standard objects and modules, see The Python Standard Library. The Glossary is also worth going through.

PEP 8 -- Style Guide for Python Code Code should be written in a way that does not disadvantage other implementations of Python (PyPy, Jython, IronPython, Cython, Psyco, and such).For example, do not rely on CPython's efficient implementation of in-place string concatenation for statements in the form a += b or a = a + b. This optimization is fragile even in CPython (it only works for some types) and isn't present at all in implementations that don't use refcounting. In performance sensitive parts of the library, the ''.join() form should be used instead. This will ensure that concatenation occurs in linear time across various implementations.Comparisons to singletons like None should always be done with is or is not, never the equality operators.Also, beware of writing if x when you really mean if x is not None -- e.g. when testing whether a variable or argument that defaults to None was set to some other value. The other value might have a type (such as a container) that could be false in a boolean context!

Related: