How to offload your iTunes library to a NAS

By Lee Hutchinson, Ars TechnicaDecember 26, 2012 at 08:45AM

iTunes is something a whole lot of folks tolerate. It’s never been the best at any particular thing (except perhaps activating and syncing your iPhone or iPad, where it’s the only official game in town), but it certainly does a lot of stuff. Sometimes slow, sometimes crashy, and perpetually gaining features, it’s the app we use every day but rarely with any joy. One of its more frustrating aspects is its lack of an officially supported server component—Apple seems stubbornly unwilling to provide a real iTunes server, and so folks who would otherwise happily centrally locate a media library on a perfectly suitable NAS are stuck with islands of music.

Building a central multi-user iTunes server that works consistently and well— that’s also easy to configure and maintain without needing remote administration tools or command line hackery—is annoyingly difficult. However, it is relatively easy to take your iTunes library and simply move it to a NAS. It’s not the house iTunes server we wish we had, but it does get your data off of your computer’s local hard disk drive.

Why would you want to do this? The reason that pushed me down this path is solid state disks. As iTunes libraries go, mine’s middle of the road—about 50GB, made up of a mixture of music, audiobooks, and iOS apps but lacking movies, TV, and podcasts. Still, that’s 50GB of SSD space that would be taken up by files which, frankly, don’t particularly benefit from being on an SSD. I could relocate them to an external drive, but I don’t have any spare external drives with enough capacity. What I do have, though, is a Synology DS-412+ with plenty of space on it.

Read 33 remaining paragraphs | Comments

Process Explorer – The Most Powerful Task Manager Replacement [Windows]

By Chris Hoffman, MakeUseOfDecember 24, 2012 at 06:31PM

process explorerLet’s be honest, the Windows Task Manager isn’t that great for understanding and managing the processes running on your computer. Even on Windows 8, where it’s much-improved, the task manager can’t come close to the power of Process Explorer. It’s part of the Sysinternals set of tools that Microsoft purchased – and for good reason. They’re among the most powerful system utilities for Windows.

In addition to its power, Process Explorer is also flexible. It’s available from Microsoft as a single .exe file. That makes it a portable app you can throw on a USB drive and run on any computer.

Understanding The Processes Running On Your Computer

Perhaps the greatest thing about Process Explorer – from a power-user perspective – is the way it helps visualize the processes running on your computer and their relation to each other.

The task manager included with Windows is a bit of a mess, displaying all running processes in a flat list. It works if you’re hunting for a specific process by name, but it doesn’t give you an overview that really helps you understand what’s going on.

It’s particularly messy if you use multi-process applications like Google Chrome – what if Google Chrome was misbehaving and you needed to kill all its processes? The Windows Task Manager doesn’t make it easy.

process explorer

Process Explorer helps make much more sense of this. The most obvious improvement is the hierarchical tree of processes – we can see the main chrome.exe process that launched all other Chrome processes and understand what Google Chrome is doing. If we wanted to force-quit Google Chrome entirely, we could right-click the top chrome.exe process and select Kill Process Tree. If we wanted to hide all these chrome.exe processes so they didn’t clutter the list, we could click the minus icon to collapse that part of the tree.

process explorer download

Other improvements also help make this list easier to understand. Each process has an associated icon, a description, and a company name. These descriptions and names may be blank – it’s up to each program to provide this information.

Color-coding helps, too. Processes colored blue are your own processes, while processes colored pink are system services. Your desktop processes will appear under explorer.exe near the bottom of the list, while services will appear under services.exe near the top. This helps sort the process list so you aren’t sifting through system services while viewing the processes running on your desktop.

To view which colors correspond to which types of processes and customize the colors, click the Options menu and select Configure Colors.

process explorer download

More Features

Process Explorer is packed with features, including all the ones you’d expect from the Windows Task Manager. You can right-click a process to kill it, change its priority level, or set its CPU affinity and force it to run on only a specific CPU. We won’t focus on all these features – we’ll focus on cool things you can do with Process Explorer that you can’t do with the Windows Task Manager.

  • Search Online: This feature is present in Windows 8’s new task manager, but it showed up in Process Explorer first. You can right-click any running process in the list and select Search Online to quickly search for it online. This can help you understand exactly what the process is and where it came from.
  • Detailed Process Properties: To view information about a process, right-click it and select Properties. If a process is automatically starting with your computer, Process Explorer will tell you where it’s configured to do so. If a process is hiding in the background, you can click Bring to Front to view its window (assuming it has a visible window).

process explorer download

  • Detailed Resource Usage Information: Process Explorer exposes many more ways of visualizing resource usage. In addition to system-wide resource usage graphs, you’ll find per-process CPU, memory, and disk usage graphs in a process’s properties window. You can also see a graph of GPU (graphics card) usage – either per-process or system-wide. To view system-wide resource usage data, click the View menu and select System Information.

process explorer for windows

  • Unlock Locked Files: Have you ever seen a message saying a specific file or folder is in-use by a process and can’t be deleted or moved? This is often to prevent files that are legitimately in-use from being modified, but sometimes programs continue locking a file even when they don’t need it. To see which program is using a file, you can click Find and select Find a Handle or DLL. Search for the name of the file or folder and Process Explorer will tell you which process is “locking” the file. To remove the lock so you can delete or move the file, right-click the handle itself and select Close Handle.

process explorer

  • Find a Window’s Process: Not sure what process a specific window belongs to? Click and drag the target-shaped icon on the Process Explorer toolbar over another window on your desktop. Process Explorer will show you which process the window belongs to.
  • Replace the Windows Task Manager: Love Process Explorer and wish the Windows Task Manager was this awesome? Just click the Options menu and select Replace Task Manager. Whenever you open the task manager – either by pressing Ctrl+Shift+Escape, right-clicking the task bar and selecting Start Task Manager, or pressing Ctrl+Alt+Delete and clicking Start Task Manager – Process Explorer will appear instead.

process-explorer-replace-task-manager

Process Explorer is listed on both our Best Windows Software and Best Portable Apps pages because it’s an amazing tool. If you’re looking for another third-party task manager replacement, you may also want to check out Process Hacker or System Explorer.

What do you think of Process Explorer? Do you prefer another task manager replacement? Leave a comment and share your favorite tool!

The post Process Explorer – The Most Powerful Task Manager Replacement [Windows] appeared first on MakeUseOf.

OSU professor to retract research over data-falsification finding

By (author unknown), Dispatch Latest HeadlinesDecember 21, 2012 at 07:08PM

An Ohio State University pharmacy professor has agreed to request retractions of much of his research after university and government officials found that he falsified data in six journal articles. As part of an agreement disclosed today, Terry S. Elton said he will avoid contracting or subcontracting with any agency of the federal government for three years, or serving in any advisory capacity to the U.S. Public Health Service for three years. He will request that five of his scientific publications be retracted.

6 Tips for Near-Macro Photography with a Telephoto Lens

By Elliot Hook, Digital Photography SchoolDecember 21, 2012 at 11:16AM

Macro photography is the art of capturing the fine detail of very small subjects that may not be able to be seen by the naked eye.  Technically, to fall under the term ‘macro’, the subject should be captured with a reproduction ratio of 1:1, i.e. the subject will be captured on the sensor at 100 % life size.

Macro lenses are specially designed to minimise the focussing distance, allowing the photographer to get closer to the subject and so increase the reproduction ratio.  There are a number of other techniques that can be used to help achieve the desired magnification without a dedicated lens (extension tubes, close-up filters, reversing rings), however, one of less often considered techniques is to use something that you probably already have in your kit bag: a telephoto lens.

Milking Bonnet Fungi (Mycena galopus)

Milking Bonnet Fungi (Mycena galopus)

Telephoto lenses offer extreme magnification but generally have much larger minimum focussing distances pushing the photographer further from the subject and so reducing the reproduction ratio.  Some telephoto lenses, when combined with camera systems utilising smaller sensors, are able to offer 1:1 magnification (‘true macro’) however, typically, telephoto lenses are limited to close-up photography, at near-macro reproduction ratios.

Using a telephoto lens for this kind of work offers a couple of advantages over a dedicated macro lens that are a direct result of the large minimum focus distance.  Because the working distance to the subject is in the region of 1 metre (compared to 15 – 30 cm of standard macro lenses) the risk of disturbing your subject as you compose your shot is much reduced.  Also, given the extra distance between the camera and the subject, you are much less likely to cast a shadow over your subject and have a lot of freedom with the lighting you can employ to light the subject – both natural and flash.

Common Blue butterflies, mating (Polyommatus icarus)

Common Blue butterflies, mating (Polyommatus icarus)

Using a telephoto lens for such precise work is not without challenge, so here are a few tips to help maximise your chances of getting that near-macro shot, with your telephoto lens:

  1. Due to the extreme focal length, the risk of reduced sharpness due to camera shake is higher.  Therefore, it is imperative to use a tripod and remote shutter release to try and limit lens/camera movement.
  2. Even on a tripod, images can still suffer from camera sake.  Try and use a tripod collar for your telephoto lens, so that the lens is clamped directly to the tripod, reducing the chances of ‘lens wobble’.  If not, use the ‘1/focal length’ shutter speed rule to help capture sharp images (I always use 1/effective focal length (i.e. multiply your focal length by sensor crop factor to give the focal length in 35 mm terms) when selecting a shutter speed to reduce movement).
  3. Be aware of the depth of field.  Using extreme focal lengths at such close distances can reduce the depth of field to fractions of a millimetre.  Therefore, to ensure the subject is sharp throughout, use a small enough aperture to ensure the depth of field extends across your whole subject (there are websites and apps to help you do this).
  4. Ensure your subject is parallel to the sensor.  If you want to capture your subject in focus from front to back, ensure that it is parallel to your sensor.  The depth of field will be so narrow at the extreme focal lengths that you may not have more than a few millimetres to play with.  Therefore, position yourself accordingly to maximise your chances of capturing a sharp image.
  5. Switch the lens to manual focus.  If your telephoto lens as an AF/MF switch, switch it to manual focus and compose/focus the shot manually.  You may find that when focussing manually, the minimum focussing distance decreases meaning that you can get closer to your subject, increasing the magnification.
  6. Use a teleconverter to increase the focal length, but retain same minimum focussing distance.  This will allow you to significantly increase the magnification of the subject, without having to move any further away.  Increasing the focal length in this way will have consequences on your choice of shutter speed and aperture, but as long as it is taken into consideration, a teleconverter can successfully be used to increase the reproduction ratio.
Common Blue Damselfly (Enallagma cyathigerum)

Common Blue Damselfly (Enallagma cyathigerum)

Using a telephoto lens for near-macro photography will typically not allow you to magnify your subject as far as if using a dedicated macro lens, but you will be able to test the water to see if macro photography is something you enjoy, without having to splash out on any additional kit.  If you do decide that macro photography is for you, by putting this technique to practise you will learn a lot of good field craft that will be of benefit when you get around to picking up that new macro lens.

Post originally from: Digital Photography Tips.

Check out our more Photography Tips at Photography Tips for Beginners, Portrait Photography Tips and Wedding Photography Tips.

6 Tips for Near-Macro Photography with a Telephoto Lens

Be productive with the MySQL command line

By Stephane Combaudon, MySQL Performance BlogDecember 21, 2012 at 08:51AM

Even if you are using a GUI tool to connect to your MySQL servers, one day or another, you will have to deal with the command line. So it is nice to know a few tips that can really make your work easier.

Note: The commands below are only available for Unix/Linux.

Using pager

Most of the graphical tools paginate results, which is very handy. But this is not the way the command line client works: it just outputs all results. It can be annoying but it is easily solved by using the pager command:

mysql> pager more
PAGER set to 'more'
mysql> select title from sakila.film;
+-----------------------------+
| title                       |
+-----------------------------+
| ACADEMY DINOSAUR            |
| ACE GOLDFINGER              |
| ADAPTATION HOLES            |
| AFFAIR PREJUDICE            |
| AFRICAN EGG                 |
| AGENT TRUMAN                |
| AIRPLANE SIERRA             |
| AIRPORT POLLOCK             |
| ALABAMA DEVIL               |
| ALADDIN CALENDAR            |
| ALAMO VIDEOTAPE             |
| ALASKA PHANTOM              |
| ALI FOREVER                 |
| ALICE FANTASIA              |
| ALIEN CENTER                |
| ALLEY EVOLUTION             |
| ALONE TRIP                  |
| ALTER VICTORY               |
| AMADEUS HOLY                |
--Plus--

Another example of the pager command is when you want to estimate a good size for you InnoDB redo logs: the estimation is based on the variation of the Log Sequence Number during a given period of time. Instead of manually looking for the right line in the output of SHOW ENGINE INNODB STATUS (which can be huge), you can call pager to the rescue:

mysql> pager grep sequence
PAGER set to 'grep sequence'
mysql> show engine innodb status\Gselect sleep(60);show engine innodb status\G
Log sequence number 380166807992
1 row in set (0.41 sec)

1 row in set (1 min 0.00 sec)

Log sequence number 380170274979
1 row in set (0.00 sec)

When you are done and you want to disable paging, you can simply run:

mysql> pager
Default pager wasn't set, using stdout.

Using edit

When you try to optimize a query, it often involves manipulating the text of the query, and sometimes it would be great to have a text editor inside the client. Well, this can be achieved by using the edit command.

Let’s say you have the following query:

mysql> select count(*) from film left join film_category using(film_id) left join category using(category_id) where name='Music';

and let’s say you want to change the left joins to inner joins and use capital letters for reserved SQL words. Instead of manually editing the statement, which will be boring, you simply call edit:

mysql> edit

and it will open your default text editor with the text of the last query. The default text editor is vi, so you now have the power of vi inside the mysql client!
Once you have made your changes, save and exit the editor: you are back in the mysql client where you can type ; or \G to execute the query.

Using tee

In some situations, like when you are testing a set of commands to write documentation or when you are in the middle of an emergency, you want to be able to record the queries that you have executed. The command line client offers the tee command, which will log to a file the statements you typed and their output, pretty much like the Unix tee command:

mysql> tee queries.log
Logging to file 'queries.log'
mysql> use sakila
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select count(*) from sakila;
ERROR 1146 (42S02): Table 'sakila.sakila' doesn't exist
mysql> select count(*) from film;
+----------+
| count(*) |
+----------+
|     1000 |
+----------+
1 row in set (0.00 sec)

mysql> exit

And now if you look at the content of the queries.log file, you will see a copy of your session.

Conclusion

The mysql command line client is not as glossy as most of the graphical tools, but if you know some of its hidden features, it can be very powerful. If you enjoyed these tips, I will write another post with other useful but overlooked features.

Google Updates Mod_Pagespeed With Smarter Caching, Progressive JPEGs

By Frederic Lardinois, TechCrunchDecember 20, 2012 at 12:40PM

page_speed

Google wants the web to be as fast as possible and it’s been working on a number of initiatives like SPDY, PageSpeed Tools, its hosted libraries and, of course, its Chrome browser. One tool that doesn’t get quite as much press as projects like Chrome and SPDY is mod_pagespeed for the open-source Apache web server.

Mod_pagespeed automatically implements a number of performance-optimization techniques that can help improve the loading times of the sites that implement it. Google has now launched version 1.2 of mod_pagespeed. This new version focuses on four features: improved caching for JavaScript libraries like jQuery and jQuery UI; pre-resolving DNS requests; the ability to proxy and optimize resources from trusted domains; and core support for transcoding JPEG images to progressive.

As Google’s Joshua Marantz, Jan-Willem Maessen and Bharath Bhushan note in the announcement, “numerous web sites use common JavaScript libraries such as jQuery and jQuery UI. But when one library is stored on many sites, browsers end up re-downloading that library for each new site – a waste of time and bandwidth.” To ensure that users don’t have to re-download these libraries every time, mod_pagespeeds smarter caching system for JavaScript libraries now looks for standard libraries and modifies the site (including third-party code on it) to link to Google’s own copy of them.

Another caching-related optimization in mod_pagespeed 1.2 is support DNS prefetching. DNS resolution time, the mod_pagespeed team says, “varies from <1ms for locally cached results, to hundreds of milliseconds due to the cascading nature of DNS.” Pre-resolving DNS requests won’t shave seconds of your site’s loading times, but it could easily save you half a second – and the point of mod_pagespeed is to make many incremental changes that add up to a significantly faster load time.

Here is what this looks like in action:

Before:

After:

Also new in version 1.2 is the ability to transcode JPEG images to the progressive JPEG format. This feature was previously available in mod_pagespeed, but users had to manually select it. It’s now a ‘core’ filter.

The team also notes that mod_pagespeed can now proxy and optimize resources from trusted domains. This, they say, “enables you to optimize resources even from servers that don’t run mod_pagespeed” and will also provide performance benefits for sits that run SPDY.

Word skills help toddlers control their rage

By Vicki Fong-Penn State, Futurity.orgDecember 20, 2012 at 12:24PM

PENN STATE (US) — Toddlers with more developed language ability can manage their frustration better and are less likely to express anger by the time they’re in preschool, say researchers.

“This is the first longitudinal evidence of early language abilities predicting later aspects of anger regulation,” says Pamela M. Cole, research professor of psychology and human development and family studies at Penn State. She was the principal investigator of the study, which appears in Child Development.

Angry outbursts like temper tantrums are common among toddlers, but by the time children enter school, they’re expected to have more self-control. To help them acquire this skill, they’re taught to use language skills like “using your words.”

This Laser Weapon Got Five Times More Powerful in Just One Year

By Andrew Tarantola, GizmodoDecember 19, 2012 at 11:30AM

The pace of High Energy Laser (HEL) technology has become a sprint with nations and defense firms alike racing to develop more and more powerful systems. Nowhere is this breakneck pace clearer than at Rheinmetall’s Ochsenboden Proving Ground, especially during a recent test of the company’s shiny, new, 500-percent improved HEL anti-artillery platform. More »