Tech Buzz: Beijing team proposes effortless phone charging with light beams

go by Nancy Owano
A prototype implementation of AuthoCharge. Top: the charger side components. Bottom: the smartphone side components. Credit: Yunxin Liu et al.

"Hurry up, my phone's dying." A familiar wail heard on the move. Cutting-edge smartphones pose charging headaches faster than the smartphone owner likes, with their powerful multicore CPU and GPU cores, screens, high-speed wireless network interfaces, energy-expensive apps and continuous sensing tasks. Can a light beam ease the charging exercises to effortlessly charge a smartphone? Three researchers think so.

Yunxin Liu, Zhen Qin and Chunshui Zhao of Microsoft Research, Beijing, have written a paper on their work, "AutoCharge: Automatically Charge Smartphones Using a Light Beam." They have named their approach AutoCharge and, like its title suggests, is designed to relieve the smartphone owner of the burden of any explicit effort to juice up the phone. Two steps are involved, detection and charging. Think of their approach as a "solar charging" technique but applied indoors with a wireless lightbeam. Think of it also as an image-processing technique designed to detect and track smartphones on a desk for automatic charging. Their paper reports the prototype that they designed and implemented, discussing the light charger and the smartphone detection and tracking system. The AutoCharge results: the prototype was able to detect the presence of a smartphone in seconds. Charging time was as fast as existing wired chargers.

and more at http://phys.org/news/2015-01-beijing-team-effortless.html


perl tutor : How to modify your @INC include path - What to do when Perl modules aren't in their normal locations

The final thing to remember is that if this message comes back with an error, it doesn't exactly mean that this module isn't installed on the current system, it just means that the module isn't in your @INC include path.

perl tutor : How to modify your @INC include path - What to do when Perl modules aren't in their normal locations

When you have root access to a Unix server, it's pretty easy to install Perl modules in their proper locations, and forget about them. But if you don't have root access and you need to install your Perl modules in non-standard directories, how will you get your programs to find your modules?

In this article we'll demonstrate how to use the use lib statement in your Perl programs to include the non-standard location of your Perl modules into Perl's @INC search list.

Perl modules - use and require examples (with root access)

If you're lucky enough to have root access to your Unix server, it's easy to install Perl modules into their default locations. Once they're installed in their default locations, you just include the modules into your Perl/CGI programs with a "use" or "require" statement like this:

use "LWP.pm";  

or this:

require "LWP.pm";  

Include Perl modules when you don't have root access ...

If you don't have access to the root password on your Unix server, or you're not allowed to add Perl modules to the Perl installation directories, what can you do? (Note: This problem usually arises when you're renting web space on somebody else's web server, and they don't have the module installed that you need -- a fairly common occurrence.)

In cases like this, the thing to do is to install the Perl module yourself into a directory where you do have write permission. For instance, if my name is George, and my HOME directory is /home/george, I might install my Perl modules into a directory named /home/george/modules. If you follow the installation instructions for Perl modules, this is very easy to do.

Assuming that goes okay and you now have the module installed in /home/george/modules, how do you get your Perl/CGI programs to find the module? Fortunately, that too is easy. All you have to do is modify your Perl/CGI program slightly to tell the program where else it should look for modules.

For instance, if the people that host my web site didn't have the CGI.pm module available, I'd install it in /home/george/modules. Then I'd modify my Perl/CGI program to find the module by adding this line near the top of my Perl programs:

use lib '/home/george/modules';  

This simple line of code tells your Perl program to add this directory to it's @INC search directory. @INC contains the list of directories Perl searches when looking for modules. The use lib command is the easiest way I know to modify @INC.

read more at http://alvinalexander.com/perl/edu/articles/pl010015
Loading...