Python Playground

Geeky Projects for the Curious Programmer

Author: Mahesh Venkitachalam

Publisher: No Starch Press

ISBN: 1593276044

Category: Computers

Page: 352

View: 5854

Python is a powerful programming language that’s easy to learn and fun to play with. But once you’ve gotten a handle on the basics, what do you do next? Python Playground is a collection of imaginative programming projects that will inspire you to use Python to make art and music, build simulations of real-world phenomena, and interact with hardware like the Arduino and Raspberry Pi. You’ll learn to use common Python tools and libraries like numpy, matplotlib, and pygame to do things like: *Generate Spirograph-like patterns using parametric equations and the turtle module *Create music on your computer by simulating frequency overtones *Translate graphical images into ASCII art *Write an autostereogram program that produces 3D images hidden beneath random patterns *Make realistic animations with OpenGL shaders by exploring particle systems, transparency, and billboarding techniques *Construct 3D visualizations using data from CT and MRI scans *Build a laser show that responds to music by hooking up your computer to an Arduino Programming shouldn’t be a chore. Have some solid, geeky fun with Python Playground. The projects in this book are compatible with both Python 2 and 3.

Python Playground

Geeky Projects for the Curious Programmer

Author: Mahesh Venkitachalam

Publisher: No Starch Press

ISBN: 1593277334

Category: Computers

Page: 352

View: 5824

Python is a powerful programming language that’s easy to learn and fun to play with. But once you’ve gotten a handle on the basics, what do you do next? Python Playground is a collection of imaginative programming projects that will inspire you to use Python to make art and music, build simulations of real-world phenomena, and interact with hardware like the Arduino and Raspberry Pi. You’ll learn to use common Python tools and libraries like numpy, matplotlib, and pygame to do things like: –Generate Spirograph-like patterns using parametric equations and the turtle module –Create music on your computer by simulating frequency overtones –Translate graphical images into ASCII art –Write an autostereogram program that produces 3D images hidden beneath random patterns –Make realistic animations with OpenGL shaders by exploring particle systems, transparency, and billboarding techniques –Construct 3D visualizations using data from CT and MRI scans –Build a laser show that responds to music by hooking up your computer to an Arduino Programming shouldn’t be a chore. Have some solid, geeky fun with Python Playground. The projects in this book are compatible with both Python 2 and 3.

Python Projects

Author: Laura Cassell,Alan Gauld

Publisher: John Wiley & Sons

ISBN: 1118909194

Category: Computers

Page: 384

View: 3355

A guide to completing Python projects for those ready to take their skills to the next level Python Projects is the ultimate resource for the Python programmer with basic skills who is ready to move beyond tutorials and start building projects. The preeminent guide to bridge the gap between learning and doing, this book walks readers through the "where" and "how" of real-world Python programming with practical, actionable instruction. With a focus on real-world functionality, Python Projects details the ways that Python can be used to complete daily tasks and bring efficiency to businesses and individuals alike. Python Projects is written specifically for those who know the Python syntax and lay of the land, but may still be intimidated by larger, more complex projects. The book provides a walk-through of the basic set-up for an application and the building and packaging for a library, and explains in detail the functionalities related to the projects. Topics include: *How to maximize the power of the standard library modules *Where to get third party libraries, and the best practices for utilization *Creating, packaging, and reusing libraries within and across projects *Building multi-layered functionality including networks, data, and user interfaces *Setting up development environments and using virtualenv, pip, and more Written by veteran Python trainers, the book is structured for easy navigation and logical progression that makes it ideal for individual, classroom, or corporate training. For Python developers looking to apply their skills to real-world challenges, Python Projects is a goldmine of information and expert insight.

Python Crash Course

A Hands-On, Project-Based Introduction to Programming

Author: Eric Matthes

Publisher: No Starch Press

ISBN: 1593277393

Category: Computers

Page: 560

View: 7079

Python Crash Course is a fast-paced, thorough introduction to Python that will have you writing programs, solving problems, and making things that work in no time. In the first half of the book, you’ll learn about basic programming concepts, such as lists, dictionaries, classes, and loops, and practice writing clean and readable code with exercises for each topic. You’ll also learn how to make your programs interactive and how to test your code safely before adding it to a project. In the second half of the book, you’ll put your new knowledge into practice with three substantial projects: a Space Invaders–inspired arcade game, data visualizations with Python’s super-handy libraries, and a simple web app you can deploy online. As you work through Python Crash Course you’ll learn how to: –Use powerful Python libraries and tools, including matplotlib, NumPy, and Pygal –Make 2D games that respond to keypresses and mouse clicks, and that grow more difficult as the game progresses –Work with data to generate interactive visualizations –Create and customize Web apps and deploy them safely online –Deal with mistakes and errors so you can solve your own programming problems If you’ve been thinking seriously about digging into programming, Python Crash Course will get you up to speed and have you writing real programs fast. Why wait any longer? Start your engines and code! Uses Python 2 and 3

Arduino Playground

Geeky Projects for the Experienced Maker

Author: Warren Andrews

Publisher: No Starch Press

ISBN: 159327744X

Category: Technology & Engineering

Page: 344

View: 8519

You’ve mastered the basics, conquered the soldering iron, and programmed a robot or two; now you’ve got a set of skills and tools to take your Arduino exploits further. But what do you do once you’ve exhausted your to-build list? Arduino Playground will show you how to keep your hardware hands busy with a variety of intermediate builds, both practical and just-for-fun. Advance your engineering and electronics know-how as you work your way through these 10 complex projects: *A reaction-time game that leverages the Arduino’s real-time capabilities *A tool for etching your own printed circuit boards *A regulated, variable-voltage power supply *A kinetic wristwatch winder decked out with LEDs *A garage parking assistant that blinks when your vehicle is perfectly parked *A practical and colorful pH meter *A ballistic chronograph that can measure the muzzle velocity of BB, *Airsoft, and pellet guns *A battery saver that prevents accidental discharge *A square-wave generator *A thermometer that tells the temperature using a sequence of colored LEDs Each project begins with a list of required tools and components, followed by the instructions, full sketch, and circuit board templates for the build, as well as directions for building a permanent enclosure. You’ll even find the author’s design notes, which are sure to provide inspiration for your own inventions. Gather your parts, break out the soldering iron, and get ready to take your Arduino skills to the next level with Arduino Playground. Uses the Arduino Nano and Pro Mini boards

Doing Math with Python

Use Programming to Explore Algebra, Statistics, Calculus, and More!

Author: Amit Saha

Publisher: No Starch Press

ISBN: 1593276400

Category: Computers

Page: 264

View: 524

Doing Math with Python shows you how to use Python to delve into high school–level math topics like statistics, geometry, probability, and calculus. You’ll start with simple projects, like a factoring program and a quadratic-equation solver, and then create more complex projects once you’ve gotten the hang of things. Along the way, you’ll discover new ways to explore math and gain valuable programming skills that you’ll use throughout your study of math and computer science. Learn how to: -Describe your data with statistics, and visualize it with line graphs, bar charts, and scatter plots -Explore set theory and probability with programs for coin flips, dicing, and other games of chance -Solve algebra problems using Python’s symbolic math functions -Draw geometric shapes and explore fractals like the Barnsley fern, the Sierpinski triangle, and the Mandelbrot set -Write programs to find derivatives and integrate functions Creative coding challenges and applied examples help you see how you can put your new math and coding skills into practice. You’ll write an inequality solver, plot gravity’s effect on how far a bullet will travel, shuffle a deck of cards, estimate the area of a circle by throwing 100,000 “darts” at a board, explore the relationship between the Fibonacci sequence and the golden ratio, and more. Whether you’re interested in math but have yet to dip into programming or you’re a teacher looking to bring programming into the classroom, you’ll find that Python makes programming easy and practical. Let Python handle the grunt work while you focus on the math.

Cracking Codes with Python

An Introduction to Building and Breaking Ciphers

Author: Al Sweigart

Publisher: No Starch Press

ISBN: 1593278691

Category: Computers

Page: 416

View: 3006

Learn how to program in Python while making and breaking ciphers—algorithms used to create and send secret messages! After a crash course in Python programming basics, you’ll learn to make, test, and hack programs that encrypt text with classical ciphers like the transposition cipher and Vigenère cipher. You’ll begin with simple programs for the reverse and Caesar ciphers and then work your way up to public key cryptography, the type of encryption used to secure today’s online transactions, including digital signatures, email, and Bitcoin. Each program includes the full code and a line-by-line explanation of how things work. By the end of the book, you’ll have learned how to code in Python and you’ll have the clever programs to prove it! You’ll also learn how to: - Combine loops, variables, and flow control statements into real working programs - Use dictionary files to instantly detect whether decrypted messages are valid English or gibberish - Create test programs to make sure that your code encrypts and decrypts correctly - Code (and hack!) a working example of the affine cipher, which uses modular arithmetic to encrypt a message - Break ciphers with techniques such as brute-force and frequency analysis There’s no better way to learn to code than to play with real programs. Cracking Codes with Python makes the learning fun!

Python Programming Blueprints

Build nine projects by leveraging powerful frameworks such as Flask, Nameko, and Django

Author: Daniel Furtado,Marcus Pennington

Publisher: Packt Publishing Ltd

ISBN: 178646490X

Category: Computers

Page: 456

View: 5597

How to build useful, real-world applications in the Python programming language Key Features Deliver scalable and high-performing applications in Python. Delve into the great ecosystem of Python frameworks and libraries through projects that you will build with this book. This comprehensive guide will help you demonstrate the power of Python by building practical projects. Book Description Python is a very powerful, high-level, object-oriented programming language. It's known for its simplicity and huge community support. Python Programming Blueprints will help you build useful, real-world applications using Python. In this book, we will cover some of the most common tasks that Python developers face on a daily basis, including performance optimization and making web applications more secure. We will familiarize ourselves with the associated software stack and master asynchronous features in Python. We will build a weather application using command-line parsing. We will then move on to create a Spotify remote control where we'll use OAuth and the Spotify Web API. The next project will cover reactive extensions by teaching you how to cast votes on Twitter the Python way. We will also focus on web development by using the famous Django framework to create an online game store. We will then create a web-based messenger using the new Nameko microservice framework. We will cover topics like authenticating users and, storing messages in Redis. By the end of the book, you will have gained hands-on experience in coding with Python. What you will learn Learn object-oriented and functional programming concepts while developing projects The dos and don'ts of storing passwords in a database Develop a fully functional website using the popular Django framework Use the Beautiful Soup library to perform web scrapping Get started with cloud computing by building microservice and serverless applications in AWS Develop scalable and cohesive microservices using the Nameko framework Create service dependencies for Redis and PostgreSQL Who this book is for This book is for software developers who are familiar with Python and want to gain hands-on experience with web and software development projects. A basic knowledge of Python programming is required.

Gray Hat Python

Python Programming for Hackers and Reverse Engineers

Author: Justin Seitz

Publisher: No Starch Press

ISBN: 1593272243

Category: Computers

Page: 216

View: 372

Python is fast becoming the programming language of choice for hackers, reverse engineers, and software testers because it's easy to write quickly, and it has the low-level support and libraries that make hackers happy. But until now, there has been no real manual on how to use Python for a variety of hacking tasks. You had to dig through forum posts and man pages, endlessly tweaking your own code to get everything working. Not anymore. Gray Hat Python explains the concepts behind hacking tools and techniques like debuggers, trojans, fuzzers, and emulators. But author Justin Seitz goes beyond theory, showing you how to harness existing Python-based security tools—and how to build your own when the pre-built ones won't cut it. You'll learn how to: –Automate tedious reversing and security tasks –Design and program your own debugger –Learn how to fuzz Windows drivers and create powerful fuzzers from scratch –Have fun with code and library injection, soft and hard hooking techniques, and other software trickery –Sniff secure traffic out of an encrypted web browser session –Use PyDBG, Immunity Debugger, Sulley, IDAPython, PyEMU, and more The world's best hackers are using Python to do their handiwork. Shouldn't you?

Automate the Boring Stuff with Python

Practical Programming for Total Beginners

Author: Al Sweigart

Publisher: No Starch Press

ISBN: 1593276850

Category: Computers

Page: 504

View: 7643

If you’ve ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you? In Automate the Boring Stuff with Python, you’ll learn how to use Python to write programs that do in minutes what would take you hours to do by hand—no prior programming experience required. Once you’ve mastered the basics of programming, you’ll create Python programs that effortlessly perform useful and impressive feats of automation to: –Search for text in a file or across multiple files –Create, update, move, and rename files and folders –Search the Web and download online content –Update and format data in Excel spreadsheets of any size –Split, merge, watermark, and encrypt PDFs –Send reminder emails and text notifications –Fill out online forms Step-by-step instructions walk you through each program, and practice projects at the end of each chapter challenge you to improve those programs and use your newfound skills to automate similar tasks. Don’t spend your time doing work a well-trained monkey could do. Even if you’ve never written a line of code, you can make your computer do the grunt work. Learn how in Automate the Boring Stuff with Python. Note: The programs in this book are written to run on Python 3.

Impractical Python

15 Peculiar Projects to Make You Smarter

Author: Lee Vaughan

Publisher: No Starch Press

ISBN: 9781593278908

Category: Python (Computer program language)

Page: 504

View: 2203

"A book of fun coding projects for readers who know a little Python already and want to expand their skills. Simulate volcanoes, map Mars, and more, while gaining experience using free modules like Tkinter, matplotlib, Cprofile, Pylint, Pygame, Pillow, and Python-Docx"--

Creative Coding in Python

30+ Programming Projects in Art, Games, and More

Author: Sheena Vaidyanathan

Publisher: Quarry Books

ISBN: 9781631595813

Category: Juvenile Nonfiction

Page: 144

View: 4955

Creative Coding in Python presents over 30 creative projects that teach kids how to code in the easy and intuitive programming language, Python. Creative Coding in Python teaches the fundamentals of computer programming and demonstrates how to code 30+ fun, creative projects using Python, a free, intuitive, open-source programming language that's one of the most popular worldwide. Computer science educator Sheena Vaidyanathan helps kids understand the fundamental ideas of computer programming and the process of computational thinking using illustrations, flowcharts, and pseudocode, then shows how to apply those essentials to code exciting projects in Python: Chatbots: Discover variables, strings, integers, and more to design conversational programs. Geometric art: Use turtle graphics to create original masterpieces. Interactive fiction: Explore booleans and conditionals to invent "create your own adventure" games. Dice games: Reuse code to devise games of chance. Arcade games and apps: Understand GUI (graphical user interfaces) and create your own arcade games and apps. What’s next? Look at exciting ways to use your powerful new skills and expand your knowledge of coding in Python. Creative Coding in Python gives kids the tools they need to create their own computer programs.

Programming Interactivity

Author: Joshua Noble

Publisher: "O'Reilly Media, Inc."

ISBN: 144931144X

Category: Computers

Page: 704

View: 6828

Looks at the techniques of interactive design, covering such topics as 2D and 3D graphics, sound, computer vision, and geolocation.

Getting Started with Processing.py

Making Interactive Graphics with Python's Processing Mode

Author: Allison Parrish,Ben Fry,Casey Reas

Publisher: Maker Media, Inc.

ISBN: 1457186799

Category: Computers

Page: 242

View: 7539

Processing opened up the world of programming to artists, designers, educators, and beginners. The Processing.py Python implementation of Processing reinterprets it for today's web. This short book gently introduces the core concepts of computer programming and working with Processing. Written by the co-founders of the Processing project, Reas and Fry, along with co-author Allison Parrish, Getting Started with Processing.py is your fast track to using Python's Processing mode.

The Art of Game Design

A Book of Lenses, Second Edition

Author: Jesse Schell

Publisher: CRC Press

ISBN: 1498759564

Category: Computers

Page: 600

View: 6984

Good game design happens when you view your game from as many perspectives as possible. Written by one of the world's top game designers, The Art of Game Design presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, visual design, film, software engineering, theme park design, mathematics, puzzle design, and anthropology. This Second Edition of a Game Developer Front Line Award winner: Describes the deepest and most fundamental principles of game design Demonstrates how tactics used in board, card, and athletic games also work in top-quality video games Contains valuable insight from Jesse Schell, the former chair of the International Game Developers Association and award-winning designer of Disney online games The Art of Game Design, Second Edition gives readers useful perspectives on how to make better game designs faster. It provides practical instruction on creating world-class games that will be played again and again.

Network Attacks and Exploitation

A Framework

Author: Matthew Monte

Publisher: John Wiley & Sons

ISBN: 111898708X

Category: Computers

Page: 216

View: 9288

Incorporate offense and defense for a more effective network security strategy Network Attacks and Exploitation provides a clear, comprehensive roadmap for developing a complete offensive and defensive strategy to engage in or thwart hacking and computer espionage. Written by an expert in both government and corporate vulnerability and security operations, this guide helps you understand the principles of the space and look beyond the individual technologies of the moment to develop durable comprehensive solutions. Numerous real-world examples illustrate the offensive and defensive concepts at work, including Conficker, Stuxnet, the Target compromise, and more. You will find clear guidance toward strategy, tools, and implementation, with practical advice on blocking systematic computer espionage and the theft of information from governments, companies, and individuals. Assaults and manipulation of computer networks are rampant around the world. One of the biggest challenges is fitting the ever-increasing amount of information into a whole plan or framework to develop the right strategies to thwart these attacks. This book clears the confusion by outlining the approaches that work, the tools that work, and resources needed to apply them. Understand the fundamental concepts of computer network exploitation Learn the nature and tools of systematic attacks Examine offensive strategy and how attackers will seek to maintain their advantage Understand defensive strategy, and how current approaches fail to change the strategic balance Governments, criminals, companies, and individuals are all operating in a world without boundaries, where the laws, customs, and norms previously established over centuries are only beginning to take shape. Meanwhile computer espionage continues to grow in both frequency and impact. This book will help you mount a robust offense or a strategically sound defense against attacks and exploitation. For a clear roadmap to better network security, Network Attacks and Exploitation is your complete and practical guide.

Beginning Ruby

From Novice to Professional

Author: Peter Cooper

Publisher: Apress

ISBN: 1430223642

Category: Computers

Page: 620

View: 8117

Based on the bestselling first edition, Beginning Ruby: From Novice to Professional, Second Edition is the leading guide for every type of reader who wants to learn Ruby from the ground up. The new edition of this book provides the same excellent introduction to Ruby as the first edition plus updates for the newest version of Ruby, including the addition of the Sinatra and Ramaze web application frameworks and a chapter on GUI development so developers can take advantage of these new trends. Beginning Ruby starts by explaining the principles behind object-oriented programming and within a few chapters builds toward creating a full Ruby application. By the end of the book, in addition to in-depth knowledge of Ruby, you'll also have basic understanding of many ancillary technologies such as SQL, XML, web frameworks, and networking. Introduces readers to the Ruby programming language Takes readers from basic programming skills to web development with topics like Ruby-based frameworks and GUI programming Covers many ancillary technologies in order to provide a broader picture (e.g., databases, XML, network daemons)

WordPress to Go

How to Build a WordPress Website on Your Own Domain, from Scratch, Even If You Are a Complete Beginner

Author: Sarah McHarry

Publisher: CreateSpace

ISBN: 9781481130509

Category: Computers

Page: 138

View: 8884

Do you want to build your own website but don't know where to start? Have you been put off by all the jargon and gobbledygook of other Internet guides? If so then this plain, easy WordPress tutorial is the ideal place to start. Now a #1 Amazon Best Seller on Kindle Books, this popular, up-to-date, step-by-step guide by expert Sarah McHarry will walk you through the essential first steps to building your own website or blog using WordPress. In eight easy lessons you will have your own website up and running - without needing to know any geeky computer code! And, in the remaining 12 lessons, you'll learn all you need to know about creating a website and making it into your own, unique, web presence. What you'll learn in this book: How to register your own domain and get the right WordPress hosting How to install WordPress with a few clicks of the mouse How to design a professional-looking website How to add and format your content How to use graphics and images All about themes, plugins, widgets and other WordPress tools ... and lots more.. If you want to make a website that looks like it was designed by a pro then WordPress is the ideal tool to use. Designing a website need not be difficult or expensive if you have the right guidance. Sarah's WordPress tutorial walks you through creating a website yourself using step-by-step lessons that are easy to follow. Making a website as a beginner has never been easier! Why should you build your own website on your own domain instead of using a free service? The answer is that, with your own privately registered domain and hosting account, YOU own and control the website, not anybody else. You can put whatever you like on your site and no-one can tell you otherwise. You can make your site look and behave how you like. You're the boss. And, with your own website, you can build your own distinctive 'brand', whether you are a business or a community group, an individual, or whatever... Your domain becomes your own exclusive web address, your own piece of online virtual 'real estate' that plays its part in publicizing your mission or message. Creating a website on your own domain gives you identity, visibility and, indeed, status. But don't you need a professional web designer to make a good job building a website? No, definitely not! This was the case in the early days of the Internet because only a few tech-savvy geeks knew and understood the computer language (HTML) required. But as the technology has advanced, so have the tools to build websites become more accessible. WordPress is one of these tools and WordPress is the subject of this e-book. But how much does it cost to make a website? The answer is just a few bucks per month for hosting. If you create your own website using WordPress, you don't have to spend another cent. And what if you're looking to start a blog? Well, the same instructions apply. WordPress was originally designed as a blogging platform and this ebook shows you just how to build a blog using the same techniques as designing a website. Whether you want to create a simple WordPress blog or design a full-blown ecommerce site, Sarah's 'WordPress To Go' will start you off on the right foot.

Mathematics and Python Programming

Author: J.C. Bautista

Publisher: Lulu.com

ISBN: 1326017969

Category: Technology & Engineering

Page: 268

View: 7473

"We have developed 120 Python programs and more than 110 illustrations in a work that will be useful both to students of science of the first university science courses, as well as high school students and teachers, and to anyone interested in Python programming intending to acquire new tools to expose mathematical concepts in a didactic and modern fashion....The book begins with a detailed introduction to Python, followed by ten chapters of mathematics with its corresponding Python programs, results and graphs."--Cover.

Hacking Electronics: Learning Electronics with Arduino and Raspberry Pi, Second Edition

Author: Simon Monk

Publisher: McGraw-Hill Education TAB

ISBN: 9781260012200

Category: Technology & Engineering

Page: 304

View: 2286

Up-to-date hacks that will breathe life into your Arduino and Raspberry Pi creations! This intuitive DIY guide shows how to wire, disassemble, tweak, and re-purpose household devices and integrate them with your Raspberry Pi and Arduino inventions. Packed with full-color illustrations, photos, and diagrams, Hacking Electronics: Learning Electronics with Arduino and Raspberry Pi, Second Edition, features fun, easy-to-follow projects. You’ll discover how to build an Internet-controlled hacked electric toy, ultrasonic rangefinder, remote-controlled robotic rover, audio amp, slot car brakes and headlights—even a smart card reader! • Get up and running on both Arduino and Raspberry Pi • Safely solder, join wires, and connect switches • Identify components and read schematic diagrams • Work with LEDs, including high-power Lumileds and addressable LED strips • Use LiPo batteries, solar panels, and buck-boost power supplies • Use sensors to measure light, temperature, acceleration, sound level, and color • Build and modify audio amps, microphones, and transmitters • Repair gadgets and scavenge useful parts from dead equipment • Get the most out of cheap or free bench and software tools