Computer Science With Python and Pygame
yesterday by frogpond
If you don't like starting at the beginning, try starting with the example code and programs. Also, check your progress through the course. Table of Contents Forward 1: Python Calculator 2: What is a Computer Language? 3: Conditional Statements 4: Loops 5: Introduction to Graphics 6: Back to Looping 7: Introduction to Lists 8: Random Numbers 9: Introduction to Animation 10: Functions 11: Excel Macro Demonstration 12: Controllers and Graphics 13: Bitmapped Graphics and Sound 14: Introduction to Classes 15: Introduction to Sprites 16: Libraries and Modules 17: Searching 18: Array-Backed Grids 19: Sorting 20: Exceptions 21: Recursion 22: Formating Example code and programs
development
game
programming
python
yesterday by frogpond
Google Python Style Guide
4 weeks ago by frogpond
Background Python is the main scripting language used at Google. This style guide is a list of dos and don'ts for Python programs. To help you format code correctly, we've created a settings file for Vim. For Emacs, the default settings should be fine.
google
programming
python
reference
style
4 weeks ago by frogpond
Ubuntu Musings» Blog Archive » Using pygmynote
5 weeks ago by frogpond
Final thoughts pygmynote is simple but it is flexible. Even if you’re not comfortable with the command line, it’s easy to use and can be a great substitute for a desktop note taking tool.
python
software
tools
5 weeks ago by frogpond
http://hackershelf.com/
7 weeks ago by frogpond
Die Seite The Hacker Shelf ist eine wahre Fundgrube. Denn dort gibt es tonnenweise freie Literatur rund um die Themen Programmierung und Informatik nach verschiedenen Tags geordnet. Neben vielen Quellen zu Hochsprachen wie Python, kann man dort auch ausführliche Literatur zu eher technischen Themen wie der Assemblerprogrammierung finden.
books
education
free
programming
python
hacking
development
7 weeks ago by frogpond
Random pronounceable passwords − Exyr.org
8 weeks ago by frogpond
If we mix 26 lower case letters, as many upper case, ten digits and a dozen of other symbols, that’s 72 possible characters. Picking 8 of them at random gives 728 possible passwords, or about 49 bits of entropy. It is possible to calculate the exact entropy for a Markov chain, but the math is non-trivial. I guesstimated that this pseudo-japanese is about the same entropy as alternating 15-something consonants with 5 vowels. So for 14-characters passwords, that’s 157 × 57 possible passwords or about 43 bits of entropy; which I decided was good enough for me. Now grab the code and go change all those weak passwords!
python
programming
security
8 weeks ago by frogpond
Password Generator « Python recipes « ActiveState Code
8 weeks ago by frogpond
A short, readable password generator that can be launched from the command line. Just launch it from the shell and it will print out an 8-character password. You can also specify the length and whether the password should be typed with alternating hands on a qwerty keyboard.
python
programming
8 weeks ago by frogpond
Python - Get id3 from MP3 File - Python - Snipplr Social Snippet Repository
8 weeks ago by frogpond
Python - Get id3 from MP3 File
python
todo
8 weeks ago by frogpond
MIT OpenCourseWare | Electrical Engineering and Computer Science | 6.00SC Introduction to Computer Science and Programming, Spring 2011 | Home
8 weeks ago by frogpond
This course has been designed for independent study. It provides everything you will need to understand the concepts covered in the course. The materials include: A complete set of Lecture Videos by Prof. Guttag. Resources for each lecture video, such as Handouts, Slides, and Code Files. Recitation Videos by course TA's to review content and problem solving techniques. Homework problems with sample student solutions. Further Study collections of links to supplemental online content. Self-Assessment tools, including lecture questions with answers and unit quizzes with solutions, to assess your subject mastery.
elearning2.0
python
programming
tutorial
video
learning
8 weeks ago by frogpond
Keep an Eye on Your GNU/Linux System with Glances
8 weeks ago by frogpond
Looking for a no-nonsense command-line tool for monitoring your GNU/Linux system? Glances might be right up your alley. This neat little Python-based utility provides an overview of all key system aspects, including CPU load, disk storage, memory consumption, and network activity. More importantly, the utility does a good job of presenting monitored data in an easy-to-follow manner.
admin
linux
sysadmin
python
todo
8 weeks ago by frogpond
Arduino playground - Python
8 weeks ago by frogpond
Arduino and Python Talking to Arduino over a serial interface is pretty trivial in Python. On Unix-like systems you can read and write to the serial device as if it were a file, but there is also a wrapper library called pySerial that works well across all operating systems.
arduino
programming
python
8 weeks ago by frogpond
Lemonodor: arduino_serial
8 weeks ago by frogpond
arduino_serial.py is a Python port of Tod E. Kurt's arduino-serial.c program for communicating with an Arduino microcontroller board over a serial port. It only uses standard Python modules (notably termios and fcntl) and does not require any special serial communications modules.
arduino
electronics
python
programming
8 weeks ago by frogpond
PyCon US 2012 Presentation: Stop Writing Classes
9 weeks ago by frogpond
Classes must be nouns but not every noun must be a class. If your class only has two methods and one of them is init you probably meant to write a function. MuffinMail recently refactored their API; it went from 20 classes scattered in 22 modules down to 1 class just 15 lines long. It was a welcome change, but we'll further refactor that down to a single function 3 lines long. The Python stdlib is an example of a namespace that is relatively flat. You won't find packages that consist of a single module defining an exception, and you won't find many exceptions at all - just 165 kinds in 200k lines of code. That's a tiny ratio compared to most projects including Django. Of course there are things, like containers, that should be classes. As a final example we'll add a Heap type to the heapq module (admit it, you already have one in your utils.py).
python
programming
objectoriented
9 weeks ago by frogpond
A Guide to Python's Magic Methods « rafekettler.com
9 weeks ago by frogpond
This guide is the culmination of a few months' worth of blog posts. The subject is magic methods. What are magic methods? They're everything in object-oriented Python. They're special methods that you can define to add "magic" to your classes. They're always surrounded by double underscores (e.g. __init__ or __lt__). They're also not as well documented as they need to be. All of the magic methods for Python appear in the same section in the Python docs, but they're scattered about and only loosely organized. There's hardly an example to be found in that section (and that may very well be by design, since they're all detailed in the language reference, along with boring syntax descriptions, etc.). So, to fix what I perceived as a flaw in Python's documentation, I set out to provide some more plain-English, example-driven documentation for Python's magic methods. I started out with weekly blog posts, and now that I've finished with those, I've put together this guide.
methods
programming
python
reference
9 weeks ago by frogpond
Arduino Blog » Blog Archive » Python meets arduino
9 weeks ago by frogpond
A nice talk by Peter Kropf at PyCon 2012 on using Python to control external devices through an Arduino.
arduino
python
hacking
9 weeks ago by frogpond
Python PIC useful when attached to a computer - Hack a Day
11 weeks ago by frogpond
While I feel Python’s a great learning language on PCs (and it would be “great” if the Arduino IDE supported it), I have to point out you’d be losing a lot in terms of “ecosystem” if you went with anything other than an Arduino platform.
python
arduino
electronics
11 weeks ago by frogpond
Google App Engine Blog: Announcing the General Availability of the Python 2.7 Runtime for App Engine
12 weeks ago by frogpond
Today we’re happy to announce that this runtime has graduated from Experimental status and is a fully supported feature of App Engine. To get started, download the latest App Engine SDK for Python and check out the Getting Started Guide. We think the Python 2.7 runtime for App Engine is a great step forward for our developers.
python
googleapps
cloudcomputing
programming
development
12 weeks ago by frogpond
arduino | Stealthcopter.com
12 weeks ago by frogpond
Interaction with python First we import the serial library to python in order to communicate with the arduino (this includes talking over usb)
arduino
python
hacking
programming
hardware
12 weeks ago by frogpond
Online Python Tutor
12 weeks ago by frogpond
This application supports the core Python 2.5 language, with no module imports or file I/O. It's meant to be used as a platform for creating programming tutorials, not for running or debugging production code.
learning
programming
python
tutorial
elearning
12 weeks ago by frogpond
Software Carpentry » Classes and Objects
12 weeks ago by frogpond
Classes and Objects
Object-oriented programming in Python.
Requires: Python
Introduces: Python objects and classes
Motivating questions:
I have a complex program which has lots of duplicated code, is there any way to simplify it?
How do I change the behavior of one part of my program without affecting the rest of it?
programming
python
tutorial
video
objectoriented
Object-oriented programming in Python.
Requires: Python
Introduces: Python objects and classes
Motivating questions:
I have a complex program which has lots of duplicated code, is there any way to simplify it?
How do I change the behavior of one part of my program without affecting the rest of it?
12 weeks ago by frogpond
Basic Python Exercises - Google's Python Class - Google Code
12 weeks ago by frogpond
There are 3 exercises that go with the first sections of Google's Python class. They are located in the "basic" directory within the google-python-exercises directory. Download the google-python-exercises.zip if you have not already (see the Set-Up page for details).
string1.py -- complete the string functions in string1.py, based on the material in the Python Strings section (additional exercises available in string2.py)
list1.py -- complete the list functions in list1.py, based on the material in the Python Lists and Python Sorting sections (additional exercises available in list2.py)
wordcount.py -- this larger, summary exercise in wordcount.py combines all the basic Python material in the above sections plus Python Dicts and Files (a second exercise is available in mimic.py)
With all the exercises, you can take a look at our solution code inside the solution subdirectory.
python
google
programming
tutorial
string1.py -- complete the string functions in string1.py, based on the material in the Python Strings section (additional exercises available in string2.py)
list1.py -- complete the list functions in list1.py, based on the material in the Python Lists and Python Sorting sections (additional exercises available in list2.py)
wordcount.py -- this larger, summary exercise in wordcount.py combines all the basic Python material in the above sections plus Python Dicts and Files (a second exercise is available in mimic.py)
With all the exercises, you can take a look at our solution code inside the solution subdirectory.
12 weeks ago by frogpond
Python Introduction - Google's Python Class - Google Code
12 weeks ago by frogpond
Python is a dynamic, interpreted language. Source code does not declare the types of variables or parameters or methods. This makes the code short and flexible, and you lose the compile-time type checking in the source code. Python tracks the types of all values at runtime and flags code that does not make sense as it runs. (todo: link here to the companion video segment for this section)
python
tutorial
programming
12 weeks ago by frogpond
The Beginners Guide to Coding for SEO by SEO Takeaways
12 weeks ago by frogpond
Where to go next?
If you are an experienced programmer who wants to take his technical SEO skills to the next level or a business which develops and sells ‘SEO Tools’ then I would suggest learning Python, jQuery & JSON.
Why Learn Python? Google uses Python. Google App Engine which lets you run web application on Google infrastructure is written in Python (besides ‘Java’ and ‘Go’). Python supports multiple programming paradigms. You can use it as a pure object oriented language or as a powerful scripting language. It is easy to learn and use. Even kids code in Python. Ok, that last one was a joke.
Why learn jQuery and JSON? Both jQuery and JSON are commonly used in API calls. If you wish to use APIs to speed up your SEO tasks then you need to be familiar with these languages
programming
python
search
ceo
If you are an experienced programmer who wants to take his technical SEO skills to the next level or a business which develops and sells ‘SEO Tools’ then I would suggest learning Python, jQuery & JSON.
Why Learn Python? Google uses Python. Google App Engine which lets you run web application on Google infrastructure is written in Python (besides ‘Java’ and ‘Go’). Python supports multiple programming paradigms. You can use it as a pure object oriented language or as a powerful scripting language. It is easy to learn and use. Even kids code in Python. Ok, that last one was a joke.
Why learn jQuery and JSON? Both jQuery and JSON are commonly used in API calls. If you wish to use APIs to speed up your SEO tasks then you need to be familiar with these languages
12 weeks ago by frogpond
Think Complexity
february 2012 by frogpond
This book is about complexity science, data structures and algorithms, intermediate programming in Python, and the philosophy of science
book
complexity
python
complexitytheory
free
february 2012 by frogpond
Think Python: How to Think Like a Computer Scientist
february 2012 by frogpond
Think Python is the manuscript of Python for Software Design, published by Cambridge University Press.
In support of Free Books, Cambridge has agreed to keep this manuscript available under the GNU Free Documentation License. Readers are free to copy and distribute the text; they are also free to modify it, which allows them to adapt the book to different needs, and to help develop new material.
book
programming
free
python
In support of Free Books, Cambridge has agreed to keep this manuscript available under the GNU Free Documentation License. Readers are free to copy and distribute the text; they are also free to modify it, which allows them to adapt the book to different needs, and to help develop new material.
february 2012 by frogpond
Lerne Python mit Google – Der Schockwellenreiter
january 2012 by frogpond
Ein zweitägiger Kurs, vollständig dokumentiert auf der Google Code University mit Videos auf YouTube und Übungsaufgaben. Nett gemacht und auch zum Selbststudium geeignet.
google
python
tutorial
video
programming
january 2012 by frogpond
The Hitchhiker’s Guide to Python! — pythonguide 0.0.1 documentation
january 2012 by frogpond
This guide is currently under heavy development, and is mostly a skeleton at the moment. If you’d like to help, fork us on GitHub!
This opinionated guide exists to provide both novice and expert Python developers a best-practice handbook to the installation, configuration, and usage of Python on a daily basis.
python
documentation
programming
tutorial
This opinionated guide exists to provide both novice and expert Python developers a best-practice handbook to the installation, configuration, and usage of Python on a daily basis.
january 2012 by frogpond
related tags
admin ⊕ arduino ⊕ book ⊕ books ⊕ ceo ⊕ cloudcomputing ⊕ complexity ⊕ complexitytheory ⊕ development ⊕ documentation ⊕ education ⊕ elearning ⊕ elearning2.0 ⊕ electronics ⊕ free ⊕ game ⊕ google ⊕ googleapps ⊕ hacking ⊕ hardware ⊕ learning ⊕ linux ⊕ methods ⊕ music ⊕ objectoriented ⊕ programming ⊕ python ⊖ reference ⊕ search ⊕ security ⊕ software ⊕ style ⊕ sysadmin ⊕ todo ⊕ tools ⊕ tutorial ⊕ video ⊕Copy this bookmark: