EXPLORARBIBLIOTECA
Tecnologia & Jogos
RasPi Magazine

RasPi Magazine No. 28

From the team behind Linux User & Developer magazine, RasPi is the essential guide to getting the most out of the Raspberry Pi credit-card sized computer. Packed with expert tutorials on how to design, build and code with the Raspberry Pi, this digital magazine will educate and inspire a new generation of coders and makers. What you’ll find in every issue: • Get hands-on with your Raspberry Pi – we show you the best way to code, build and create with this awesome educational computer. • Awesome RasPi projects in each issue – get inspired to create something amazing with projects big and small. • Our easy to follow step-by-step tutorials and designed for all abilities and age groups. • Need to know more about anything Raspberry Pi? You can chat with the team and get your questions answered.

País:
United Kingdom
Língua:
English
Editora:
Future Publishing Ltd
Periodicidade:
Back issue only
Ler Mais

nesta edição

1 minutos
welcome

Just how much can you do with a Raspberry Pi? I’m not sure we’ll ever find out, because people are producing amazing new projects all the time that use the Pi in new and different ways. Take the Pixel Globe project in this issue, then compare it to the tutorial on controlling lights, or the second part of our guide to coding a videogame in FUZE Basic. These projects couldn’t be more different, but they all have the Pi at their heart. One of the things that makes this possible is Python, the ultra-powerful programming language that we take an in-depth look at this issue. With Python, you can ask the Pi to do almost anything – the only real limit is your imagination! Check out our guide for more. Get inspired Discover…

3 minutos
system administration

System administration tasks are some of the most annoying things that you need to deal with when you have to maintain your own system. Because of this, system administrators have constantly been trying to find ways to automate these types of tasks to maximise their time. They started with basic shell scripts, and then moved on to various scripting languages. For a long time, Perl had been the language of choice for developing these types of maintenance tools. However, Python is now growing in popularity as the language to use. It has reached the point where most Linux distributions have a Python interpreter included in order to run system scripts, so you shouldn’t have any excuse for not writing your own scripts. Because you will be doing a lot system level…

5 minutos
web development

With the content and the bulk of the computing hosted on a server, a web application can better ensure a consistent experience for the end user. The popular Django framework provides a complete environment of plugins and works on the DRY principle (Don’t Repeat Yourself). Because of this, you should be able to build your web application quickly. Since Django is built on Python, you should be able to install it with sudo pip install Django. Depending on what you want to do with your app, you may need to install a database like MySQL or PostgreSQL to store your application data. There are Django utilities available to automatically generate a starting point for your new project’s code: This command creates a file named “manage.py” and a subdirectory named “newsite”. The…

5 minutos
computational science

Python has become one of the key languages used in science. There is a huge number of packages available to handle almost any task that you may have and, importantly, Python knows what it isn’t good at. To deal with this, Python has been designed to easily incorporate code from C or FORTRAN. This way, you can offload any heavy computations to more efficient code. The core package of most of the scientific code available is numpy. One of the problems in Python is that the object-oriented nature of the language is the source of its inefficiencies. With no strict types, Python always needs to check parameters on every operation. Numpy provides a new datatype, the array, which helps solve some of these issues. Arrays can only hold one type of…

6 minutos
robotics and electronics

Robotics is the most direct way that your code can interact with the world. It can read actual sensor information and move real actuators and get real work done. The first thing your robot needs is the ability to sense the world around it. The one sense that we as humans feel is most useful is sight. With web cameras being so cheap and easy to connect to hardware, vision is easy to give to your robot. The real problem is how to interpret this data. Luckily, you can use the OpenCV project to do just that. It is a vision package that can provide simple image gathering and processing, to extremely complex functions like face recognition and extraction of 3D objects. You can identify and track objects moving through your…

5 minutos
pixel globe

What is the persistence of vision phenomenon? Evan Kahn: When something moves, your eye can’t immediately update the things that it sees, so if something’s moving really fast then you see a kind of blur, you see something in multiple positions at the same time. You can take advantage of that by just moving something really fast and then changing the way that it looks at every time interval. That’s sort of how a CRT display works. This is the same except it’s mechanically moving fast, and we update the lights – it’s a plastic ring with LEDs around the outside, and it rotates at 500 rpm, which is 8.3 times per second, which means that if we want 150 pixels around the sphere, which is what we found looks good, we…