Sunday, February 17, 2013

IT News Head Lines (Techradar) 18/02/2013


Techradar Price matching to become permanent at Best Buy Price matching to become permanent at Best Buy Best Buy spokesman Matt Furman told Bloomberg in an interview on Friday that the company plans to permanently extend its price-matching policy. Best Buy began price matching items in the store to prices at other online retailers this past holiday season. Now it looks like the electronics retailer will apply the policy year-round in an effort to end the consumer practice of "showrooming", or checking out hardware in-store to later buy cheaper online. Permanent price matching will start at Best Buy on March 3, along with a halving of the product return period from 30 days to 15 days.

Superlatives

A business and law professor informed Bloomberg that Best Buy doesn't want to lose its business to other retailers, particularly those selling products on the internet. Without speculating too wildly, it appears that Best Buy is learning to adapt to the changing marketplace, as are other major in-store retailers like Target, which also matches prices from online retailers. According to Furman, Best Buy is well aware of the trend, and is confident that ,"this new policy ends showrooming for Best Buy customers." Price matching at Best Buy applies to almost all merchandise in its stores except phones bought with a contract.
Read More ...
Twitter to shut down Posterous blogging service on April 30 Twitter to shut down Posterous blogging service on April 30 Posterous, the simple blogging and note-sharing service bought by Twitter last year, will shut down at the end of April, the company has confirmed. The tool, which allowed users to post blogs to 'Spaces' via email but became more about private photo and note sharing as it evolved, was snapped up by Twitter for an undisclosed fee in March 2012. At the time Twitter had vowed to allow the Posterous team to continue working autonomously, as it attempted to build a challenge to the almighty Tumblr, but that challenge did not materialise. Posterous founder and CEO Sachin Agarwal confirmed Twitter's decision to shutter the service and its mobile apps in a statement posted on the company blog.

Acqui-hire complete

He said the Posterous team will now be focussing on its work on other Twitter projects, which pretty much confirms that the original purchase was nothing more than a talent raid. Agarwal wrote: "Posterous launched in 2008. Our mission was to make it easier to share photos and connect with your social networks. Since joining Twitter almost one year ago, we've been able to continue that journey, building features to help you discover and share what's happening in the world – on an even larger scale. "On April 30, we will turn off posterous.com and our mobile apps in order to focus 100% of our efforts on Twitter. This means that as of April 30, Posterous Spaces will no longer be available either to view or to edit. "Right now and over the next couple months until April 30th, you can download all of your Posterous Spaces including your photos, videos, and documents." The post on the company blog goes on to detail how users can back up all of the items they're shared on Posterous pages. So long, Posterous. We hardly knew ye.
Read More ...
Review: Toshiba HG5 512GB Review: Toshiba HG5 512GB Toshiba isn't a name that readily comes to mind when choosing a solid-state drive, which is surprising considering it invented NAND flash 25 years ago. But while companies like OCZ, Intel, Kingston, Corsair, Samsung and myriad others are shouting about their SSDs, the fact that Toshiba makes SSDs as well as the NAND chips inside them tends to pass people by. Back in June 2012 Toshiba announced the world's first 19nm NAND equipped SSDs, but only now do we have a drive for review. Unfortunately for Toshiba, in the time since the announcement two other manufacturer's drives using its latest NAND have already visited our test bench: Plextor's M5 Pro Series and the latest drive from Kingston, the SSDNow V300. Toshiba quotes the max sequential read speed at 524MB/s, with the sequential write speed quoted at 461MB/s for everything bar the 64GB drive. Under test conditions using the ATTO benchmark these figures seem a little on the safe side, as the drive produced a read score of 554MB/s and 511MB/s for the writes. That performance sits the Toshiba drive in between the two other 19nm NAND users we've tested.

Control yourself

Unlike the ubiquitous SandForce controller, the Marvell controller isn't particularly bothered about what type of data it is working with. Comparing sequential read/write scores for the default incompressible and compressible data tests in AS SSD shows this nicely, and results in 512MB/s and 477MB/s for the read/writes respectively for the default test, and 509MB/s reads and 495MB/s writes for the compressible data test. However, the 4K read performance isn't that strong, and the writes are disappointingly low, which is something we've seen before with larger capacity SSDs. Back in the real world, the drive's performance is pretty impressive. It took just three and a half minutes to copy a 50GB folder of fixed file types and sizes, while copying a 4GB image took a mere 17 seconds. A 17GB Blu-Ray file took a speedy 76 seconds too.

Benchmarks

Sequential read performance AS SSD: Megabytes per second: Higher is better TOSHIBA HG5: 512 PLEXTOR M5 PRO: 500 KINGSTON SSDNOW V300: 556 Sequential write performance AS SSD: Megabytes per second: Higher is better TOSHIBA HG5: 477 PLEXTOR M5 PRO: 309 KINGSTON SSDNOW V300: 527 4K random write performance AS SSD: Megabytes per second: Higher is better TOSHIBA HG5: 23 PLEXTOR M5 PRO: 53 KINGSTON SSDNOW V300: 57 Toshiba is keeping quiet about details of the controller, so we grabbed a deerstalker hat and a screwdriver and started investigating. Toshiba certainly doesn't make it easy. Four tiny screws hold the case together, and four slightly larger ones hold the PCB in place. Releasing the PCB revealed individual thermal pads protecting the NAND and controller. The controller is branded Toshiba, but has 'Marvell N8B97202.4JW' underneath it, so it looks like custom Marvell silicon with Toshiba-written firmware. The Marvell silicon means it can take on incompressible data with ease, but the curse of the high-capacity SSD strikes again with weak 4K random figures. That's the price you pay for large-scale storage right now, but prices are tumbling, with this Toshiba coming in at 72p per GB. One worry is Toshiba's seeming lack of confidence in its product based on the warranty. Just one year isn't good enough for an expensive new SSD.
Read More ...
Microsoft confirms Office 2013 licenses cannot be transferred Microsoft confirms Office 2013 licenses cannot be transferred Microsoft has confirmed that Office 2013 owners cannot transfer their license to another PC once it has been installed. In a departure from Microsoft's Office 2010 stance, those who purchase a license (for all versions) for the new Windows 8 productivity suite, will not be able to reinstall elsewhere, even if their PC is stolen. In an emailed response to a query from Computerworld asking whether this was indeed the case, a Microsoft representative simply replied "correct." Asked in a follow up email whether end users could transfer the license in the event that their PC is lost, stolen or damaged, the PR firm representing Microsoft responded with a curt "no comment. Similar restrictions had existed for the cheaper versions of Office 2010, but not for all commercial versions of the software, as is the case with Office 2013.

Move to Office 365

The move is being seen as a way for Microsoft to encourage sign-ups for its cloud-based Office 365 Premium subscription suite. "We've been very clear in all of our communications that customers seeking transferability should get Office 365 and that Office 2013 is licensed to one device," the Microsoft spokesperson added. Office 365 Premium does allow the software to be installed on up to five machines, so it is indeed more "transferable," but that's not really the point. Office 365 requires a monthly £7.99 (USD$9.99, AUD$12.99) subscription or an annual £79.99 (USD$99.99, AUD$119.99) fee, so in reality it's still like buying Office once a year.

Kicking users while they're down

For loyal Office customers who are unlucky enough to have their laptop stolen or suffer hardware failure, having to buy Office again for their new PC will undoubtedly be an added boot in the nether regions. Surely, Microsoft would be wise to revise this policy and not punish those who've opted to pay for their products? Let us know your thoughts in the comments section below.
Read More ...
Skype Video Messages absent from Windows platforms until end of April Skype Video Messages absent from Windows platforms until end of April Microsoft will hold off on adding the new Skype Video Message feature to Windows-based apps until the end of April, the company has reportedly confirmed. The new feature, which rolled out in beta on iOS, Android and Mac on Friday, allows users to record and send visual voicemail messages up to three minutes in length on their phones, tablets or computers. Given that Microsoft paid a pretty penny to acquire Skype, it was with some surprise that Windows Phone, Windows 8 and Windows RT apps were omitted. Microsoft said on Friday that feature would arrive eventually, and now CITEworld has received confirmation from Skype that the feature will be in play on Windows by the time May rolls around.

Android and iOS guinea pigs?

The report claimed: "This afternoon, Skype confirmed to CITEworld that Windows users would get the ability to send video messages by the end of April." The someone baffling decision to delay a Windows launch in favour of rival Apple and Google platforms may be due to Microsoft continuing to allow Skype to have some level of autonomy since the acquisition. It could also be that Microsoft is allowing other platforms to be used as beta guinea pigs, while the feature is perfected in time for a launch on Windows. The Skype spokesperson told CITEworld: "We ask you to be patient with us as we fine-tune the product ahead of its official launch." Skype Video Message users who can access the feature are able to send 20 clips before it becomes a Skype Premium subscription feature.
Read More ...
Apple to launch iOS 6.1.2 'next week' to fix passcode vulnerability Apple to launch iOS 6.1.2 'next week' to fix passcode vulnerability Apple's promised fix for an iOS 6.1 bug that enables intruders to by-pass a user's passcode and access certain areas of the phone, could be released this week. German site iFix claims that iOS 6.1.2 will be in the public realm by February 20, at the latest, as Apple looks to lockdown the dangerous flaw. Earlier this week a video was posted online showing how a complex series of button pushes could nullify the passcode and unlock photo albums, calling logs, voicemail and enable the hacker to modify contacts. Apple has acknowledged the problem, which is almost identical to one which surfaced in 2010, and said it is hastily working on a fix, but did not state when it would arrive.

Prediction

"Apple takes user security very seriously," said company spokesperson Trudy Muller on Thursday. "We are aware of this issue and will deliver a fix in a future software update." Now iFix, quoting the same sources it used to pre-empt the release of iOS 6.1.1 last week, to predict iOS 6.1.2 will arrive early next week, perhaps as soon as Monday or Tuesday.
Read More ...
Apple seeking software engineer to lead 'next generation' Apple TV Apple seeking software engineer to lead 'next generation' Apple TV Apple is in the market for a software engineer to command the development of new features for the Apple TV set-top box and in turn, perhaps, the long-rumoured iTV flatscreen television. A recent posting on Apple's jobs website, seeks applications from an experienced software engineering manager to assist the company in increasing its presence in the living room. The successful candidate will lead a team of engineers and oversee releases from conception to completion, while also representing Apple TV across the company. The posting intimates that Apple TV is now a 'high priority' project, which is a long way from the device's roots as Steve Jobs' favourite 'hobby' project.

Living room takeover

The posting reads: "The Apple TV team is looking for an experienced engineering manager to help deliver the next generation features for Apple TV. "Bring your creative energy and engineering discipline, and help us bring the Apple experience to the living room." Recent reports have suggested that Apple is finally going to allow more third-party apps to go live on Apple TV with the introduction of an SDK later this year. The posting also mentions that the chosen party will be asked to "develop the engineering plan for upcoming projects." Could this mean the fabled Apple iTV set?
Read More ...
Week in science: Cyborg rats with night vision are now a reality Week in science: Cyborg rats with night vision are now a reality This week, science has managed to realise the frightening reality of a cyborg rat with Terminator-vision. Plus we might have finally discovered the appendix isn't quite as useless as we previously thought. Oh, and next time you get dumped, you can blame it on the oxytocin, all in another exciting week in science. Terminator vision given to a rat One day we might be able to augment our bodies with upgrades like night-vision. Researchers have managed to plug-in an IR-camera into a rat's brain, allowing it to actually sense infrared light. It allowed the cyborg rats to find an IR light in a pitch-black room and activate a button, as if they could see it through a built-in sense. Real-life Terminator vision might be closer than you'd think. [New Scientist] Oxytocin is the love drug that keeps us locked together Although we'd like to believe otherwise, the heart has nothing to do with love - it's all in the mind. Scientists have now found the hormonal cause of long-term love. Oxytocin is released as we fall in love and is imperative for a long-lasting relationship, enhancing communication, and acting a bit like nature's 'love glue'. So next time you get dumped, it probably wasn't you, it's a lack of oxytocin. [Scientific American] Cyborg rats with night vision are now a reality (credit: msmayee on Flickr) Looks like that appendix isn't totally useless after all The appendix is apparently a very misunderstood organ. Previously thought to do absolutely nothing for us, just a leftover from when we used to eat grass, now researchers think they've found a purpose for the humble appendix. Apparently it could act as a 'safe harbour' for useful gut bacteria, protecting them from severe infection, allowing them to repopulate your gut when your immune system's managed to vanquish the enemy. A bit like an in-built Yakult, then. [Science] Got diabetes? No problem Gene therapy isn't just the realm of science fiction anymore. Scientists have actually managed to cure dogs of diabetes with gene therapy. By using a virus, they injected two genes into the dogs' muscles: one to produce insulin, and one to control the amount of glucose absorbed into the muscle. Together they removed the need for the dogs to be injected with insulin, effectively curing diabetes in a large animal on a long-term basis for the first time. One day, this might be viable for human diabetes sufferers, getting rid of the need for constant insulin injections forever. [Diabetes] It's life, Jim, but not as we know it Life has been found 800m under the artic ice, far deeper than sunlight can reach, and in incredibly cold temperatures. It's the first time microbes have been found in such a hostile condition, without even heat or iron-belching vents as a food source. The DNA sequences of the microbes and other facts about their survival are currently being probed, with the hope that they might give us clues as to whether life could arise on alien worlds like Jupiter's freezing moon, Europa. It just goes to show, life can thrive under almost any conditions. [Nature] Cyborg rats with night vision now a reality Liver cancer survival tripled by a genetically engineered virus The viral vector that helped us knock smallpox on the head is now being used to prolong the life of liver cancer sufferers. The modified vaccinia virus was able to shrink tumours in the liver, and any secondary tumours that formed, giving the patients simply mild flu-like symptoms. We've still got a long way to go, but the virus proved much more effective than the current best chemical treatments for liver cancer. It shows modified viruses might be our best hope against cancer and other difficult to cure diseases. [New Scientist] A computer that will never crash A revolutionary new computer system, that can reprogram itself if it finds a fault, is now up and running at University College London. The computer, which mimics the chaos and randomness of real life, operates in a distributed, decentralised and probabilistic manner. It marries data to instructions and distributes the combined digital entities over various pools or "systems". Each system has context-sensitive data, which means it can only interact with other similar systems, executing in a pseudorandom order. All the systems process their instructions simultaneously, with no one system taking priority. As multiple copies of the instructions are distributed across multiple systems, it means if one is broken it doesn't matter. The computer carries on, re-writing the broken code from fresh copies, in effect, making it uncrashable. It's designed to model the human brain and other natural processes, but it sounds like it could be incredibly useful to average Joe on the street. Imagine a world where there are no crashing computers to ruin your day. [New Scientist] Cyborg rats with night vision are now a reality The first robotic eye goes on sale If turning rats into cyborgs wasn't enough for you, the first augmented sight system that partially restores sight in the human eye is going on sale in the US. The Argus II Retinal Prosthesis System uses a retinal implant in the eye, paired with a special set of glasses packing an integrated mini camera. It restores at least partial sight in those with retinitis pigmentosa, a genetic disease that destroys the photoreceptors in the eye leading to blindness. Next step, augmented reality injected directly into the eye. [DiscoveryNews]
Read More ...
Tutorial: Supercharge your Raspberry Pi Tutorial: Supercharge your Raspberry Pi We first featured the Raspberry Pi early last year when they were launched. We loved them, but we didn't realise just how much the rest of the world loved them too. We don't think that back then anyone did. The Raspberry Pi has struck a chord with hobbyists the world over, in a way no other device in recent years has. The initial production run of 10,000 sold out so quickly that only the lucky and dedicated fans got one, and now they're selling as fast as factories can make them. Frankly, this isn't surprising given that for around £30 you can get a fully working Linux computer featuring an ARM processor and 512MB of RAM (on boards shipped after 15 October) that's the size of a credit card. The goal of the project is to revolutionise out-dated computing education in the UK, but it's too early to see if it will achieve this. One thing is for sure, though: the world of amateur hardware hacking will never be the same again. These diminutive, but fully functional, systems are perfect for adding processing power to unusual places where space and electricity are at a premium. They've been sent into space and are being prepared to cross oceans, but are also being used for home brewing beer and driving remote control cars. We're going to look at some cool projects for the Pi and introduce you to the techniques you'll need to turn yours into the device of your dreams. Thanks to the versatility and depth of Linux tools, it's easy to tune your Pi to be anything from a desktop computer to a media centre or hardware controller.

Distro Guide

As you probably expect, there's a wide range of distros available on the Pi, and new ones seem to pop up every week. Here, we're going to take a look at some of the most popular, as well as a couple of novel ones. You install a distro in a slightly different way than on a normal computer. Since everything runs off an SD card, all you have to do is write the new operating system to this card. The easiest way of doing this is with the command-line tool dd. This tool does a bit-for-bit copy of data between a device and a file (or for that matter, two files or two devices). Distros are supplied as image files (a bit like ISO files for CDs) that can be written to the disc, after being unzipped if necessary, with: sudo dd if= of= bs=4k sudo sync The second line ensures that all the data is written to the card and not stuck in any buffers. So, for example, on our test computer, which has two hard drives (sda and sdb), the SD card comes up as dev/sdc. If you aren't sure which device your SD card is, run df –h at the terminal, and it will list all the devices. You should be able to see which one it is. To back up your Raspberry Pi setup, you can create a new image file by reversing the if (input file) and of (output file) flags in the dd command. That is: sudo dd if= of= bs=4k This image can then be compressed, using gzip or bzip so it doesn't take up too much hard drive space.

Raspbian

Raspbian This is the recommended distro by the Raspberry Pi Foundation. Unless you have a good reason to use a different one, it's probably your best bet. It's based on Debian Wheezy, and so you can easily install anything from the huge Debian repositories. The default desktop environment is LXDE, which is very lightweight, but a little basic for some tastes. Xfce is available for people who like a few more graphical niceties. It has the raspi-config program, which is probably the easiest way of configuring your Pi. The Raspberry Pi was designed to get children into programming, and Raspbian was designed with this in mind. You'll find Idle (a Python IDE) and Scratch (a programming environment for young children) on the desktop. It's available from: www.raspberrypi.org

Arch Linux

While Raspbian has been created to try to shield users from the internal setup of the operating system, Arch Linux is designed to help users understand how the system works. The initial image, available from www.raspberrypi.org, includes just the basic system to get your Pi running and connected to the network. It doesn't include much of the software you may want to use the system such as, for example, a graphical environment. You should find the information you need at the Arch Linux Wiki. Taking it from this initial state to a working system will require a bit of work, but along the way you'll learn about how the internals of a Linux distro fit together. Whether or not this is worth all the work is, of course, up to you.

Raspbmc

The Raspberry Pi may have been designed as an educational tool, but hobbyists have been pretty quick to make it a toy. This distro is designed to turn your Pi into a media centre that can be used to control your TV. It's based on XBMC, which allows you to play music and videos that you have as files, or stream them from the internet. The image can be downloaded from: www.raspbmc.com. For details of how to install it and set it up, see the section a little further down the page. If you have a MythTV back-end set up, you can use XBMCPi to provide a front-end interface. Depending on what you want to play, you may need to purchase the codec packs that provide access to patent-protected video and audio algorithms.

Android

An official version of Android for the Pi is in the works (official in that it is endorsed by the Raspberry Pi Foundation). They have provided videos of it running, but at the time of writing, it wasn't available for download. By the time you read this, that may have changed. Any news will be announced at www.raspberrypi.org. The community has been working on an unofficial version. The performance isn't as good as the official version will have (the developers describe it as "barely useable"), but it's available now. Check out: www.razdroid.net.

Raspbian

Raspbian games For the majority of people who use it, Raspbian will be the graphical face of the Raspberry Pi. It can be obtained and installed onto an SD card by following the instructions above. Once it's up and running, it's a good idea to grab the latest versions of all the software by connecting your Pi to the internet, opening a terminal and running: sudo apt-get update sudo apt-get upgrade The killer feature of Raspbian is the raspi-config program. This will start automatically the first time you boot, or can be run at any time by typing sudo raspi-config in a terminal. It has got quite a few options, but the most important are: expand_rootfs Because of the way Raspbian is installed, it will only create a 2GB filesystem, so if you have a larger card, any remaining space will remain unused. You can use this option to expand the filesystem to take advantage of any wasted space. memory_split The Raspberry Pi uses the same chunk of memory for both the main processor and the graphics chip. Using this option, you can change the amount allocated to each. overscan This option can be used on some displays to make the graphics expand to fill the whole screen. You can safely ignore it unless you have problems. overclock Get an extra 50 per cent performance at no extra cost! See the below for more details. boot_behaviour This rather cryptically named option changes whether your Pi boots into a graphical environment or a text one. The installed software has been kept to a minimum. This is a good idea, but you may find that tools you use on other desktop distros aren't there. Fortunately, as Raspbian is linked to the Debian Armhf repositories, you have access to more software than you're ever likely to need. If you like using a mouse, you may want to install a graphical package manager. We recommend Synaptic. To install it, type: sudo apt-get install synaptic in a terminal. It can then be opened by going to the LXDE menu > Preferences > Synaptic Package Manager. You can then install any software you want.

14 cool Raspberry Pi hacks

1. Convert a Pi into a laptop 2. Use a Kindle as a screen 3. Turned into a super computer (sort of) 4. Control your Arduino from the web 5. Build a synthesiser 6. Roam the night remotely 7. Control a solar power setup 8. Converse with a foreigner 9. Send a payload into (near) space 10. Control a house from the web 11. Brew beer 12. Play old games 13. Learn to build an OS 14. Make a photobooth

Overclocking

Overclocking The processor at the heart of the Raspberry Pi is designed to run at 700MHz. That is, perform 700,000,000 operations per second. Of course, 'designed to run' doesn't mean 'has to run'. You can increase this speed. However, doing this will increase the power consumption, which in turn increases the amount of heat generated. If it gets too hot, you're liable to have a smoking pile of silicone rather than a functional processor. Fortunately, the latest version of Raspbian (2012-9-18) includes a tool to help you ramp up the speed while keeping an eye on the temperature. Since this is an official tool, using it won't void your warrantee (unlike earlier unofficial methods). Overclocking your Pi is simply a matter of running sudo raspi-config and selecting Overclocking. There are a few options to choose from, depending on how brave you're feeling. If you find that your Pi becomes unstable, reboot with the Shift key held down to disable overclocking, then change the option in raspiconfig. The maximum setting should give you a whopping 50% extra speed, which we found makes a real difference to the desktop user experience, especially for web browsing. If you want to keep an eye on your core temperature, you can add the Temperature widget to the LXDE panel. However, your Pi will automatically turn off overclocking once it reaches 85 degrees C.

RaspBMC

RaspBMC You can install a media player, such as VLC, onto Raspbian, and use that to play videos. This works fine if you're using your Pi as a general computer and giving it occasional multimedia functions. However, the small size of the hardware, and the fact that it runs silently, makes it a good choice for building your own entertainment centre. You could start from Raspbian and customise it to your needs, and this is a good idea if you have any unusual functions in mind. However, here at Linux Format, we're a bit lazy, so we like to steal other people's hard work rather than do it ourselves. Fortunately for us (and you), a team of hackers have done all the difficult bits of building a media centre for the Raspberry Pi, and packaged it for you to use. Get the installer from here, and copy it onto your Pi (you'll need a working Raspbian to start from). Then you just need to run: sudo python install.py to download and set up the distro. This will wipe your SD card, so make sure you've backed up any important files elsewhere before running it. Once the installer's finished running, reboot the system. You'll notice the difference as soon as the graphical environment starts. This uses the popular XBMC media desktop, which is quite different from LXDE, which you may have experienced on Raspbian. You can play media stored locally or, through the use of add-ons, stream content from the internet. Music and videos can be added to your setup either by attaching a USB device, or directly onto the SD card using FTP (username pi, password raspberry). See below for how to find the IP address. Perhaps the only piece of configuration you will need is to make sure the sound is sent to the right place. Under System > System > Audio Output make sure that Output is set to Analog if you're using the jack, or HDMI if you're using this. XBMC remote desktop This is all good, but it's a bit impractical to use a mouse and keyboard to control your telly. The good folks at XBMC thought of this and added support for remote controls. The simplest and most general-purpose way of doing this is via RaspBMC's web interface. Using this, any device with a web browser that's on the same network as the Pi can control the playback. This is enabled by default, so all you need to do is find out the IP address of the Pi in System > System Info (you should be able to set this to be a static IP on your router). Then, on any other device attached to a network, open a browser and point it to that IP. If you're a modern sort, and using an Android or iOS mobile device, then you should find a selection of apps in the various app stores that can do this with a nicer interface than the HTML pages. We found that Raspbian drew all the current our power supply could deliver. If you attach a few peripherals, and find that it becomes a little unstable, this could be the reason. The best way of mitigating this is to attach all USB devices through a powered hub.

Taking it further

It is possible to take complete control of your TV viewing using Linux, including watching live TV, and recording shows for later. This can be done using MythTV. You'll need a separate computer with the appropriate cable connections to act as the server. A word of warning, though: MythTV is renowned for its pernickety installation. The stresses of this procedure are responsible for more than a few of LXF editor Graham Morrison's grey hairs. You can play video files that you have stored on other computers on your network, for example those on a Network Attached Storage (NAS) box. The exact method for doing this will vary depending on how you share the files, but they are configured through the Add Sources buttons. For more information on this, check out the wiki.

Camera controller

Back up your photos using your Pi Camera controller The size of the Raspberry Pi means we can use it to take control of other embedded devices. This may seem a little redundant - the embedded devices obviously have some form of controller already - but it means we can script and extend them in ways that aren't possible (or are, at least, very hard) without the extra device. Almost anything that you can plug in to a normal desktop can be scripted by a Pi, but we're going to look at cameras for a couple of reasons. Firstly, there's support for most in Linux, and secondly there's a range of useful projects you can do once you've grasped the basics. The best command-line tool for manipulating cameras in Linux is Gphoto2. Get it with: apt-get install gphoto2 Before getting stuck in to the project, we'll take a look at this useful tool to see what it can do. The desktop environment can try to mount the camera, and this can cause Gphoto2 a few problems, so the easiest thing to do is run without it. Open a terminal and run sudo rasbpi-conf, and under Boot Behaviour, select No to not start the windowing system, then reboot. On our test system, we found that running this way, we could just run everything off the Pi's power supply, but if we tried to use a mouse as well, we needed to upgrade to a powered hub. Obviously, this will depend on the particulars of your peripherals and power supply. In the new text-only environment, plug in your camera and run: gphoto2 --auto-detect This will try to find any cameras attached to the Pi. Hopefully, it will pick up yours. While it does support an impressive array, there are a few cameras that won't work. If yours is one of the unlucky few, you'll need to beg, steal or borrow one from a friend before continuing. Not all supported cameras are equal, and the next step is to see what the camera can do. To list the available actions, run: gphoto2 --auto-detect --abilities There are, broadly speaking, two main classes of abilities: capture, and upload/download. The former let you take photos with your scripts, and are present mostly on higher-quality cameras. The latter let you deal with photos stored on the memory card, and are present on most supported cameras. In this project, we'll deal only with the second set of abilities. The simplest command we can send to the camera is to get all the photos stored on it. This is: gphoto2 --auto-detect --get-all-files Running this will download all the files from the camera into the current directory. This would be fine on a normal computer, but you may not want to do it on a Pi, as you run the risk of filling up your memory card pretty quickly. Instead, we'll copy them onto a USB stick. To do this in an interactive session, you could simply use a GUI tool to mount the stick then run df -h to see where the USB stick is mounted, and cd to the directory. However, since this will run automatically, we need to know where the device will be. There are a few ways of doing this, but we'll keep it simple. We'll mount the first partition of the first serial disk, and store the photos there. Here, we're assuming that you're using the default user pi. If you're not, you'll need to adjust the script. First, we need to create a mount point for the drive. This is just a folder, and can be put anywhere - we're going to spurn convention and put it in our home folder. So before running the script, run: mkdir /home/pi/pic_mount With this done, we're ready to go. The script to mount the drive and get the photos is: #!/bin/bash if mount /dev/sda1 /home/pi/pic_mount ; then echo "Partition mounted" cd /home/pi/pic_mount yes 'n' | gphoto2 -- auto-detect --get-all-files umount /dev/sda1 else echo "/dev/sda1 could not be mounted" fi yes 'n' is a command that simply emits a stream of n characters. This means that when Gphoto2 prompts to overwrite any previously downloaded files, it will decline. The umount is essential, because it ensures that the drive is properly sync'd and can be removed. We've called the script get-pics.sh, and saved it in Pi's home directory. To make it executable, run: chmod +x /home/pi/get-pics.sh You should now be able to run it manually. You'll need to use sudo because it needs to mount the drive. The final piece of the puzzle is to get the script to run automatically. To do this we add it to the file /etc/rc.local. This script runs when you boot up, and it executes as root, so there's no need to worry about permissions. Just open the file with a text editor as root. For example, with sudo nano /etc/rc.local, and add the line: /home/pi/get-pics.sh ///end code/// just before the line exit 0. Now all you have to do is plug in your camera (making sure it's turned on) and USB stick, and it'll back up your photos when you boot up.

Taking it further

Gphoto2 If you want to run the device headless, as will most likely be the case, you could attach LEDs to the GPIO pins, as shown elsewhere in this article, and use these to indicate statuses. As well as saving them to the USB stick, you could upload them to an online service, such as flickr. See the section on wireless networking for information on how to connect your Pi to your phone. You could include some sort of switch to tell your Pi which photos to upload, and which to store on the USB stick, for example upload low-resolution images, and store high-res ones. Or you could create low-resolution versions of the images, and upload those. Gphoto2 has far more capabilities than we use here, including bindings for Java and Python. For full details, check out the project website: www.gphoto.org Of course, you don't have to stop there. If you have a wireless dongle in your Pi, you could use it to run a HTTP server. With some PHP (or other web language) scripting, you should be able to create an interface to GPhoto2 that will allow you to connect from your mobile phone. Taking it in a different direction, if your camera supports capture options, you could use your Pi to take photos as well as copy them.

Powering your Pi

The Raspberry Pi gets power from its micro USB port. This supplies 5V, and the Raspberry Pi foundation recommends an available current of at least 700mA. This can easily be delivered via a mains adapter, or a USB cable from a computer. If you want your Pi to be portable, then there are other options. Four AA batteries should provide enough power, provided you have the appropriate housing and cables to get the power into the micro USB port. However, we found the best solution was to get a backup power supply for a mobile phone that plugs directly into the Pi.

Ohm's Law

There are two key ways of measuring electricity: voltage and current. Voltage (measured in volts) is the amount of energy a given quantity of electrons has, while current (measured in amps) is the amount of electrons flowing past a point. The two are intimately connected by Ohm's law which states: Voltage = Current * Resistance, or V=IR. You can use this connection to make sure you don't accidentally toast your Pi by pushing too much current into it. The exact setup of the Pi is a little complex. If you wish to delve into it, Gert van Loo (one of the designers) has put together an explanation, which can be found at: http://bit.ly/Qp4PMl As a rough rule of thumb, you can expect to draw voltage out of a GPIO pin at 3.3v, and you shouldn't draw more than 16mA, or push more than this into an input pin. This is the maximum current, you should aim to use less. So, with Ohm's law we know V=IR, so R=V/I. If we put in the data from the Pi, and want to ensure we don't damage it, we know that R must be greater than 3.3/0.016, which is 206.25 Ohms. Remember, this is the smallest amount of resistance it's safe to use with a GPIO output. You should aim for a margin of safety several times above this unless absolutely necessary. In our circuits, we've used 1000Ohms, which gives us a safety factor of almost 5.

Networking

The Raspberry Pi comes with a wired Ethernet connection, which is fine for most occasions, but sometimes the cable just won't reach. You could use a USB wireless dongle. However, if you've got an Android phone, and your carrier hasn't disabled the feature, you can use this as your networking device. This has an extra advantage of not drawing as much power from the Pi, and so makes it easier when running from batteries. You should be able to share your phone's connection to Wi-Fi as well as 3G, so it won't necessarily eat into your data allowance. Of course, it's best to check the connection type before downloading large files. To do this, connect your phone to your Pi, and enable tethering in Settings > Wireless and Networks > Tethering and Portable Hotspots (on the phone). Back on the Pi, if you type sudo ifconfig, you should then see the interface usb0 listed, but it won't have an IP address. Networking interfaces are controlled by the /etc/network/interfaces file. By default, there isn't an entry in here for USB networking, so we need to set one up. Open the file with your favourite text editor as sudo. For example, with sudo nano /etc/network/interfaces and add the lines: iface usb0 inet dhcp nameserver 208.67.220.220 nameserver 208.67.222.222 This used the OpenDNS nameservers, but you could use others if you wish. You can now either restart the interfaces or restart your Pi to pick up the changes. You should have an internet connection up and running.

Sending output

Use the GPIO pins to light up some LEDs GPIO The Raspberry Pi's diminutive size makes it ideal for making your own embedded devices. This can be a great way of creating small computing devices to solve specific problems, like we saw with the camera controller. However, there is the slight problem that it can be hard to know what's going on inside your Pi without a screen. Fortunately, the designers of the Pi thought of this problem and have added the facility to get information on and off a Pi without the bulk of usual PC peripherals. This is done via General Purpose Input and Output (GPIO). You may have wondered what the spiky pins near the SD card reader are for - well, you're about to find out. This basic circuit can be used to display information from any source, but here we're going to use it to solve a problem we often have at LXF towers - finding the final byte of the IP address. This is useful if you want to remotely access your Pi, but can't configure it with a static IP because, for example, you have to move it between networks. Typically, you can find out the first three bytes from the netmask, but the final one can be elusive unless you have a monitor. We're going to use the gpio program, which is part of WiringPi. You can find out more about this from the WiringPi website. It comes as source code, so we'll have to unzip it and compile it with: tar xvf wiringPi.tgz cd wiringPi/wiringPi make sudo make install cd ../gpio make sudo make install We'll also use bc, so install it with: sudo apt-get install bc Now, that's enough about software - on with the hardware! Just a quick word of warning before we start: it is possible to break your Pi by connecting the wrong wires together, so make sure you double check before powering up. Pi pins The circuit for this is very simple: you just have to connect each output to the positive leg of an LED, then the negative leg of the LED (shorter) to a 1KOhm resistor, and finally the other leg of the resistor to the common ground. See figures 1, 2 and 3 for details. Once you have your fully-set-up board connected to your Pi, you can make things happen. To start with, we'll just use the final pin. This is pin 7 (the layout of the pins doesn't follow a numbering pattern). Open up a terminal, and set it to output with: gpio –g mode 7 out Then you can turn it on with: gpio –g write 7 1 and off again with: gpio –g write 7 0 If you're like us, you'll do that repeatedly until the novelty of it wears off. Once it has, you're ready to run the script. It contains four parts. The first just sets the pins to the right mode and makes sure they're turned off: pins="7 8 25 24 23 18 15 14" for x in $pins do gpio -g mode $x out gpio -g write $x 0 done The second grabs the IP address from ifconfig, converts it to binary, then pads it out with leading zeros, if necessary. ipaddress='ifconfig eth0 | grep 'inet ' | awk '{print $2}' | cut -f4 -d'.'' binary='echo "ibase=10;obase=2;$ipaddress" | bc' paddedBinary='printf %08d $binary' The next part uses cut to extract the part we want from this binary string and outputs it to the appropriate pin. bit=1 for x in $pins do out='echo $paddedBinary | cut -b$bit' gpio -g write $x $out bit=$((bit+1)) done And, finally, we tell the script to sleep for five minutes, then turn the LEDs off. sleep 5m for x in $pins do gpio -g write $x 0 done That's all there is to it! Create the showIP.sh script, make it executable with: chmod a+x showIP.sh and type sudo ./showIP.sh to display your IP. To get this run automatically on boot, you just need to add the line: /home/pi/showIP.sh & to rc.local. See the Camera Controller section for details on how to do this.

Need more input

Input We've shown you how to send output via the GPIO, but as the name suggests, they can also receive input. With this, it's even more important to ensure you don't send too much power into the pins. To get input, just set the mode to input with gpio –g mode in then read the value with gpio –g read . This hardware can display any eight bits of information, so you don't have to limit it to displaying just IP addresses. For example, you could make a modified version of the camera controller script to use the LEDs to indicate its progress. You can find details on the full selection of GPIO pins here. The pins we've used are the same in both revision 1 and 2 of the Raspberry Pi, but some have changed between the two versions. If you design your own circuits, or use ones off the web, make sure you use the right pins for your board. You don't have to limit yourself to just switching pins on and off. The Pi supports a few methods of passing larger amounts of data through the GPIO. The two most common of these are Serial Peripheral Interface bus (SPI) and Inter-Intergrated Circuit (I2C). There are a number of devices available that use these, and plenty of information online to help get you started. So what's stopping you? Get out your soldering iron and build a robot army.

Gertboards and Arduinos

Connecting directly to your Pi's GPIO pins can provide you with basic input and output control, but there are limitations. There are two additional items that you can obtain to help you interact more precisely with the world around you. The Gertboard is a fairly complete expansion pack for connecting between your Pi and the real world, including a micro controller, and a range of input and output options. It comes as an unassembled kit, so you will have to get your hands on a soldering iron to put it together. Meanwhile, the Arduino is a micro controller that can connect to your Pi (or any other computer) via the USB port. Typically, it comes assembled, but kit forms are also available. In its raw form, it has fewer features than the Gertboard (which includes an Arduino microcontroller), but it can be expanded with a huge range of shields.
Read More ...
Available Tags:Twitter , Toshiba , Microsoft , Skype , Windows , Apple , iOS , Apple TV , TV ,

No comments: