background preloader

An Introduction to Interactive Programming in Python

An Introduction to Interactive Programming in Python

Intro to Unintrusive JavaScript with Django There are quite a number of tutorials looking at using Ajax with Django. Despite that, it is still a topic that leaves many confused. I think the fundamental issue is that there are three very different groups looking for tutorials on using Ajax with Django: Experienced web developers who have used a multitude of other frameworks (and used to administer networks composed of passenger pigeons in their younger days) who just need a couple of low-level details. Usually tutorials for group one get written first, because they usually only need to be a couple of paragraphs and a code snippet (and they make up the majority of early adopters). This tutorial's aim is to guide someone with a bit of Django knowledge--but no understanding of Ajax or JavaScript--through implementing a simple note taking application while touching on the high, low, and medium level concepts of creating Ajax web applications. Overview What does that even mean? The Application That's it. That is the first commit I made.

Introduction to Computer Science and Programming Using Python This course is the first of a two-course sequence: Introduction to Computer Science and Programming Using Python, and Introduction to Computational Thinking and Data Science. Together, they are designed to help people with no prior exposure to computer science or programming learn to think computationally and write programs to tackle useful problems. Some of the people taking the two courses will use them as a stepping stone to more advanced computer science courses, but for many it will be their first and last computer science courses. Since these courses may be the only formal computer science courses many of the students take, we have chosen to focus on breadth rather than depth. Introduction to Computer Science and Programming Using Python covers the notion of computation, the Python programming language, some simple algorithms, testing and debugging, and informal introduction to algorithmic complexity, and some simple algorithms and data structures. Recommended textbook.

Learn to Program: The Fundamentals About the Course A computer program is a set of instructions for a computer to follow, just as a recipe is a set of instructions for a chef. Laptops, kitchen appliances, MP3 players, and many other electronic devices all run computer programs. Programs have been written to manipulate sound and video, write poetry, run banking systems, predict the weather, and analyze athletic performance. This course is intended for people who have never seen a computer program. It will give you a better understanding of how computer applications work and teach you how to write your own applications. Recommended Background This course is intended for people who have never programmed before. Suggested Readings This online course is intended to be self-contained, but if you want additional reading material you will find that Practical Programming (2nd edition): An Introduction to Computer Science Using Python 3 matches the course material closely. Course Format

Coding the Matrix: Linear Algebra through Computer Science Applications About the Course When you take a digital photo with your phone or transform the image in Photoshop, when you play a video game or watch a movie with digital effects, when you do a web search or make a phone call, you are using technologies that build upon linear algebra. Linear algebra provides concepts that are crucial to many areas of computer science, including graphics, image processing, cryptography, machine learning, computer vision, optimization, graph algorithms, quantum computation, computational biology, information retrieval and web search. Linear algebra in turn is built on two basic elements, the matrix and the vector. In this class, you will learn the concepts and methods of linear algebra, and how to use them to think about problems arising in computer science. Recommended Background You should be an experienced programmer. You are not expected to have any background in linear algebra. Suggested Readings Coding the Matrix is an optional companion textbook.

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.

Creative Coding — Monash University Learning to program is no longer just for computer specialists and software developers. People from many different backgrounds now want to understand the basics of programming, because it’s both fun and an increasingly valuable skill. One of the most exciting ways to learn programming is through authoring your own creative programs. Known as “creative coding,” this growing field uses computer software as a medium to develop original creative expression. So if you’re an artist, designer, architect or musician who’s interested in how you can expand your creative skills, or even a computer programmer looking to work in creative applications, you will find this free online course extremely useful. Explore the concepts and skills of creative coding Throughout the course we’ll help you develop practical programming concepts and skills by exploring creative ideas and challenges. Learn with professional artists and designers The course is very different from technical courses on programming.

Курсы информационных технологий — Яндекс.События Компания «Яндекс» регулярно проводит набор на Курсы информационных технологий для студентов и молодых специалистов, проживающих в Москве и Подмосковье и желающих больше узнать о системном администрировании, операционной системе GNU/Linux и её применении в Яндексе. Курс состоит из теоретической и практической части. Первая часть включает в себя несколько лекций. Занятия проходят по будням вечером в московском офисе Яндекса. По окончании курса лекций все слушатели получают сертификаты. Завершающим этапом теоретического курса является экзамен. Если практика будет успешной, мы можем пригласить студентов остаться в Яндексе на постоянную работу. Руководитель проекта — Виктор Ашик. Вопросы и комментарии присылайте по адресу: intern@yandex-team.ru.

Coursera.org Machine learning is the science of getting computers to act without being explicitly programmed. In the past decade, machine learning has given us self-driving cars, practical speech recognition, effective web search, and a vastly improved understanding of the human genome. Machine learning is so pervasive today that you probably use it dozens of times a day without knowing it. Many researchers also think it is the best way to make progress towards human-level AI. In this class, you will learn about the most effective machine learning techniques, and gain practice implementing them and getting them to work for yourself. More importantly, you'll learn about not only the theoretical underpinnings of learning, but also gain the practical know-how needed to quickly and powerfully apply these techniques to new problems. This course provides a broad introduction to machine learning, datamining, and statistical pattern recognition.

Be careful with exec and eval in Python written on Tuesday, February 1, 2011 One of the perceived features of a dynamic programming language like Python is the ability to execute code from a string. In fact many people are under the impression that this is the main difference between something like Python and C#. That might have been true when the people compared Python to things like C. It's certainly not a necessarily a feature of the language itself. For instance Mono implements the compiler as a service and you can compile C# code at runtime, just like Python compiles code at runtime. Wait what. This post was inspired by a discussion on reddit about the use of the execfile function in the web2py web framework but also applies to other projects. Disclaimer beforehand: the numbers for this post are taken from Python 2.7 on OS X. Behind the Scenes of Imports Let's start with everybody's favourite topic: Performance. it locates the module (surprise). >>> code = compile('a = 1 + 2', '<string>', 'exec')>>> exec code>>> print a3

CodeWorld Rises Again! | Sententia cdsmithus About three years ago, I started work on an idea about technology-based math education. The idea was to get middle school students to work passionately on using mathematics to create things, by: Doing their own original, creative work, instead of following instructions or reaching set answers.Getting instant feedback 24 hours a day, so they can tinker and learn in a self-directed way.Building confidence by working on their own ideas, inspiring pride and excitement.Experiencing how concepts from geometry, algebra, and physics can be springboards for creativity.Becoming creators, rather than just consumers, of technology. That’s a lofty set of goals, but it was very successful. In the 2011-2012 school year, I taught a small class of six students, two to three hours per week. Students didn’t really think of what they were doing as math. At the end of that year, I had plans to teach this program in multiple schools the following school year. Getting Started You’ll also want a Google account.

Сети для самых маленьких. Часть третья. Статическая маршрутизация Мальчик сказал маме: “Я хочу кушать”. Мама отправила его к папе. Мальчик сказал папе: “Я хочу кушать”. Папа отправил его к маме. Итак, поворотный момент в истории компании “Лифт ми Ап”. Содержание: Чуточку практики для взбадривания. Процесс настройки маршрутизатора очень прост: 0) Сначала закончим с коммутатором msk-arbat-dsw1. msk-arbat-dsw1(config)#interface FastEthernet0/24 msk-arbat-dsw1(config-if)# description msk-arbat-gw1 msk-arbat-dsw1(config-if)# switchport trunk allowed vlan 2-3,101-104 msk-arbat-dsw1(config-if)# switchport mode trunk 1) Назначаем имя маршрутизатора командой hostname, а для развития хорошего тона, надо упомянуть, что лучше сразу же настроить время на устройстве. Router0#clock set 12:34:56 7 august 2012 Router0# conf t Router0(config)#hostname msk-arbat-gw1 Желательно время на сетевые устройства раздавать через NTP (любую циску можно сделать NTP-сервером, кстати) msk-arbat-gw1(config)#interface fastEthernet 0/0 msk-arbat-gw1(config-if)#no shutdown IP-план

Probabilistic Graphical Models About the Course What are Probabilistic Graphical Models? Uncertainty is unavoidable in real-world applications: we can almost never predict with certainty what will happen in the future, and even in the present and the past, many important aspects of the world are not observed with certainty. Probability theory gives us the basic foundation to model our beliefs about the different possible states of the world, and to update these beliefs as new evidence is obtained. These beliefs can be combined with individual preferences to help guide our actions, and even in selecting which observations to make. While probability theory has existed since the 17th century, our ability to use it effectively on large problems involving many inter-related variables is fairly recent, and is due largely to the development of a framework known as Probabilistic Graphical Models (PGMs). Course Syllabus Topics covered include: Introduction and Overview. The slides for the whole class can be found here.

Related: