Raspberry Pi for Dummies

519Cl1fKC2L._SL110_


Had a really exciting tweet earlier saying that some of work with Philip on writing Scratch games has been included in the soon to be published book Raspberry Pi for Dummies.

I am extremely excited about getting this and have preordered my copy from Amazon!

If you would like to order your own copy of the book click through the link below.

Book description from Amazon:

“Embrace the exciting new technology of Raspberry Pi! With the invention of the unique credit–card sized single–board computer, the Raspberry Pi, comes a new wave of hardware geeks, hackers, and hobbyists who are excited about the possibilities of the Raspberry Pi, and this is the perfect guide to get you started in this exhilarating new arena. With this fun and friendly book, you′ll quickly discover why the supply for the Pi cannot keep up with the demand! Veteran tech authors Sean McManus and Mike Cook show you how to download and install the operating system, use the installed applications, and much more. Covers connecting the Pi to other devices such as a keyboard, mouse, monitor, and more Teaches you basic Linux System Admin Walks you through editing images, creating web pages, and playing music Details how to program with Scratch and Python Explores creating simple hardware projects Raspberry Pi For Dummies makes computing as easy as pie.”




I shall write a detailed review as soon as I get my copy from Amazon.

Other books also available include:




Comments

Sending a tweet from the command line

Fancy sending a tweet from the command line on the Raspberry PI?

I found a really good script at sbprojects.com which guides you through both the code for the script and the other configurations needed to send command line tweets.

I am always very reluctant to include other people’s code without referencing it so check out
http://www.sbprojects.com/projects/raspberrypi/tweet.php for the full code and details.

1. You will need a free account at supertweet.net, you will need to make a note of the password as this will be used in the script.

2. Copy this code into a new document using nano ca
lled tweet

#! /bin/bash

# tweet
#
# This script sends tweets
# Use:
# tweet "String to be tweeted"
# Special characters may not be used if your string is not delimited by quotes
#
# Author: San Bergmans
# www.sbprojects.com
#

# Configuration variables
TWIT_USER="twitter_user_name"
TWIT_SECRET="supertweet_password"

# Other variables
TWIT_URL="http://api.supertweet.net/1/statuses/update.xml"
TWEET=$(echo "$*"|cut -c -140)

curl -u $TWIT_USER:$TWIT_SECRET -d "status=$TWEET" $TWIT_URL -s > /dev/null

Use the command chmod u+x tweet to make it an executable binary and make sure it saved in /bin

Send a tweet using tweet “this is a tweet”



Comments