How to set up an Eject All hot key in OS X



If you have a MacBook system that you regularly use at a desk such as in an office work space, then you may have a number of peripheral storage devices set up to manage backups and work-specific data, whether attached directly to the system or through a Thunderbolt, FireWire, or USB docking device. These can be convenient when you need them, but quite the opposite when you're packing up to depart.


The main reason for this is OS X's requirement that you manually unmount each drive that's attached to the system by either dragging it to the trash, clicking the eject button next to it in the Finder sidebar, or using the Eject function in the system or contextual menus. If you have multiple drives attached, you will need to systematically eject each one or chance interrupting communication with the drive, which may result in data loss.



While this isn't as much of an issue with desktop systems, with a laptop it is often easy to close the lid and pull the plugs to quickly be on your way, only to wake the system to a number of warnings about not having properly ejected your disks.




EjectAll service work flow in Automator

Set up this Automator work flow as a systemwide service, which can then be bound to a hot key for quick access to unmount any attached drive (click for larger view).



(Credit:
Screenshot by Topher Kessler/CNET)


Luckily, with the use of Terminal commands and Apple's Automator utility you can set up a hot key to quickly unmount all drives from your system, which should speed up your escape.


To do this, first open the Automator utility in the OS X Applications folder, and then follow this procedure:


  1. Create a new Service work flow

  2. Set the service to receive "No Input" but work in "All Applications"

  3. Locate and drag the Run Shell Script action to the work flow window

  4. Change the default "cat" command to the following two commands (the first removes all "ejectable" media like optical disks, and the second unmounts all drives except for those in use, such as the boot drive):

    diskutil eject /Volumes/*
    diskutil unmountDisk /Volumes/*


  5. Save the service with an appropriate name (such as EjectAll)

At this point you can test the work flow to see if it ejects your disks for you (it should). Since the work flow is a service that is available for all applications, it should now be available in the Services submenu of the application menu (next to the Apple menu) for the foremost program. Additionally, you can set a custom hot key to invoke this service at any time. To do this, go to the Keyboard system preferences and select the Services section in the Keyboard Shortcuts tab. In here, locate the new service by the name you gave it (it should be listed under General) and click the "Add shortcut" button to assign a hot-key sequence to it.


With this done, you can now invoke the hot-key sequence or select the service from the application menu to quickly unmount and eject all attached drives and have your system ready to go.




Questions? Comments? Have a fix? Post them below or !
Be sure to check us out on Twitter and the CNET Mac forums.


Read More..

USADA head: I got death threats during Armstrong probe

(CBS News) Travis Tygart is the head of the U.S. Anti-Doping Agency, which polices U.S. Olympic sports. Lance Armstrong won the world's most grueling event, the Tour de France, seven times. But after Tygart's investigation, Armstrong lost all of his titles. In his first interview, Tygart spoke with us for the premier of a new program, "60 Minutes Sports" on Showtime. Tygart says Armstrong was doping in his very first win at the Tour de France in 1999. The drug was EPO, which boosts endurance.

TRAVIS TYGART: Six samples that were taken from Lance Armstrong were retested in '05. And they were positive.

SCOTT PELLEY: In '99, when the tests were originally taken, was it reported that they were negative?

TYGART: There was no test for EPO. They were not tested for EPO at that time.

PELLEY: And when you tested for them in 2005, you discovered that they were --

TYGART: All six were flaming positive.

PELLEY: Flaming positive?

TYGART: Flaming positive.

Armstrong allegedly offered large "donation" to doping agency
Atty. denies report Lance Armstrong will admit doping
Lance Armstrong sued for more than $1.5M by U.K. newspaper over libel case

Tygart told Pelley that throughout the investigation, witnesses were intimidated to try to keep the code of silence from breaking.

PELLEY: Was Lance Armstrong personally involved in intimidating these other riders to keep them quiet?

TYGART: He was. It was tough. All -- all these witnesses were -- were scared of the repercussions of them simply telling the truth.

PELLEY: What could Lance Armstrong do to them?

TYGART: Incinerate them.

Former teammate Levi Leipheimer felt the heat. In his sworn affidavit, he says he came to a cycling dinner after he testified to the grand jury. Leipheimer says Armstrong was there and sent Leipheimer's wife a text that read, "Run don't walk."

PELLEY: What did she take it to mean?

TYGART: It's a veiled threat. Knowing her husband had just testified, truthfully, in front of the grand jury and had told citizens of this country about this great fraud. It was a message: You better run.

PELLEY: Your investigation showed that there were personal threats made against riders who had decided to come clean. I wonder if there were any threats against you.

TYGART: There were, Scott.

PELLEY: These threats came from where?

TYGART: Emails, letters.

PELLEY: Anonymous?

TYGART: Yeah.

PELLEY: Can you remember any of the lines from the emails or the letters?

TYGART: The worst was probably putting a bullet in my head.

PELLEY: Did you take that seriously?

TYGART: Absolutely.

To hear the rest of Travis Tygart's story, tune into the premiere edition of "60 Minutes Sports" tomorrow at 10:00 p.m. on the Showtime Network.

Read More..

Menu Calorie Counts: How Accurate Are They?













They are supposed to help America's obesity problem: calorie counts boldly displayed on restaurant menus across the country and important information, considering Americans now eat one-third of their meals outside the home.


Two states and nine counties require them today, and by the middle of next year, a federal law is expected to force chain restaurants, convenience stores and vending machines nationwide to post calorie counts.


But how accurate are those numbers that so affect your waistline?


A 2011 study by Tufts University sampling food from 42 restaurants says it depends.


Fast food restaurants were the most accurate because of the uniform recipes and portions, but there were wide variations found in sit-down restaurants.


"We found that 20 percent of the foods we tested had 100 calories or more over what was stated on the menu," Lorien Urban, a postdoctoral associate in the energy metabolism lab at Tufts University and first author of the study, told ABC News. "We would consider that to be a considerable amount."


Urban explained that consuming an extra 100 calories per day can lead to an extra 10 pounds in one year.


Most concerning was that a majority of the errors Urban and her colleagues found were made on the diet side of the menu.








Calorie Check: How Many Servings Are You Eating? Watch Video









"These were the foods that people who are trying to manage their weight would gravitate towards and they may be getting more calories than they expect," she said.


ABC News sent producers in three cities that already require posting menu calories to major chains to do a sampling under the direction of a nationally known lab and found that more than half of the low-cal meals tested had more calories than listed on the menu.


In total 24 food samples from four sit-down restaurants and one McDonald's were collected and the results were surprising.


McDonald's did the best. Its Big Mac Meal (posted: 930) and its Premium Chicken Sandwich (posted: 400) tested 30 calories below the menu posting.


But the sit-down restaurants had results sometimes wildly different than advertised.


In all, only one calorie count was accurate -- a Skinnylicious chicken salad sandwich from the Cheesecake Factory.


Eleven meals had more calories than on the menu and 10 had fewer calories. Some were over by only 40 calories; another was over by as much as 420 calories, again at the Cheesecake Factory: This time an order of the fish and chips dinner.


Urban said that fast food restaurants tended to be more accurate than sit-down because of the formulaic preparation that fast food restaurants use.


"Things are arriving already packaged into the restaurants and it's just a matter of warming it up and serving it to the consumer," she said. "A sit-down restaurant, things are being prepared on [the] spot [and] by chance some extra butter gets into the pan."


That can change the calorie amount.


All the restaurants and their trade association say that most calorie counts are as accurate as possible and tested extensively to make sure.


They conceded that there are variations, mostly due to portion size and individual restaurant preparation, and that the menus warn actual calories may vary.


What can you do? Take control of what is put on top of the entree by asking for everything fattening -- such as cheeses, sauces or dressings -- on the side.



Read More..

Venezuela postpones inauguration for cancer-stricken Chavez


CARACAS (Reuters) - Venezuela will postpone the inauguration of President Hugo Chavez for a new term due to health problems, the government said on Tuesday, another sign the socialist leader's cancer may be bringing an end to his 14 years in power.


The 58-year-old former soldier who has dominated the South American OPEC nation since 1999 has not been heard from since surgery on December 11 in Cuba - his fourth operation since he was diagnosed with an undisclosed type of cancer in June 2011.


The announcement outraged opposition leaders who insist that Chavez must be sworn in before the National Assembly on January 10 as laid out in the constitution, or temporarily step aside and leave an ally in power.


"The commander president wants us to inform that, based on his medical team's recommendations, the post-operative recovery should extend past January 10," said Vice President Nicolas Maduro, Chavez's chosen successor, in a letter read to the legislature.


"As a result, he will not be able to be present at the National Assembly on that date."


The letter said authorities would seek another date for the inauguration ceremony but did not say when it would take place or give a time frame for Chavez's return from Havana.


Rather than being sworn in by the legislature, he would take his oath at a later date before the Supreme Court, the letter said, as allowed by the constitution.


Government leaders insist Chavez is completely fulfilling his duties as head of state, even though official medical bulletins say he has a severe pulmonary infection and has had trouble breathing.


The government has called for a massive rally outside the presidential palace on Thursday, and allied presidents including Uruguay's Jose Mujica and Bolivia's Evo Morales have confirmed they will visit Venezuela this week despite Chavez's absence.


Argentine President Cristina Fernandez has announced plans to visit Chavez in Havana on Friday.


But the unprecedented silence by the president - famous for regularly speaking for hours in meandering broadcasts - has left many convinced he could be in his last days.


His resignation or death would upend politics in the oil-rich nation, where he enjoys a deity-like status among poor supporters thankful for his social largesse.


His critics call him a fledgling dictator who has squandered billions of dollars from crude sales while dashing the independence of state institutions.


CONSTITUTION DISPUTE


The constitution does not specify what happens if the president does not take office on January 10.


The Supreme Court, which has been expected to provide a constitutional interpretation of the issues of the inauguration date, called a press conference for Wednesday.


Opposition leaders argue that Congress chief and Chavez ally Diosdado Cabello should take over, as mandated by the constitution if the president's absence is formally declared.


Cabello has ruled that out, saying the president continues to be in charge.


If Chavez dies or steps aside, new elections would be called within 30 days. Before leaving for Havana in December, the president instructed his supporters to back Maduro in that vote if he were unable to continue.


During a rambunctious session of Congress, opposition deputies accused Socialist Party leaders of failing to follow Chavez's instructions - a scene that would have been unimaginable before Chavez's prolonged absence.


"President Chavez is the only one among you who has spoken clearly," said opposition leader Julio Borges.


He was drowned out by pro-Chavez deputies clapping and chanting the socialist leader's name and rebuffed by Cabello, who had long been considered a potential successor to Chavez until he was passed over for Maduro.


"It's not my fault you weren't chosen, don't take your frustration out on me," Borges quipped.


Another opposition deputy complained that during the debate a copy of the constitution was thrown across the chamber from the direction of the Socialist Party's deputies.


Chavez's supporters have held near-daily vigils for his recovery, while opposition activists accuse the president's allies of a Cuban-inspired manipulation of the situation.


Maduro has taken over the day-to-day running of the government and looks set to continue in the role past Thursday.


The mustachioed former bus driver lacks Chavez's charisma, but he has sought to imitate the president's style with vituperative attacks on the opposition and televised ribbon-cutting ceremonies.


With the micro-managing Chavez away, major policy decisions in Venezuela, such as a widely expected devaluation of the bolivar currency, appear to be on hold.


Venezuelan bond prices, which had soared in recent weeks on Chavez's health woes, dipped on Monday and Tuesday as investors' expectations of a quick government change apparently dimmed.


"The 'regime change' euphoria seems excessive taking into account the unclear legal transition and perhaps, more importantly, the risk that regime change does not allow for policy change," New York-based Jefferies' managing director Siobhan Morden said in a note on the bonds.


(Editing by Daniel Wallis and Eric Beech)



Read More..

Arianespace says 2012 sales leapt by 30%






PARIS: The European space launch company Arianespace said Tuesday that its 2012 sales rose 30 per cent and forecast that it would dominate Russian and US rivals this year with a market share of more than 60 per cent.

Arianespace sales soared to more than 1.3 billion euros, and the company said that it already covered 60 per cent of the global market last year, bringing its order book to 4.0 billion euros, or three years' worth of activity.

This year, the company plans 12 launches with three different vehicles, the giant Ariane 5 rocket, the smaller Vega, and the Russian rocket Soyuz, up from 10 in 2012, chief executive Jean-Yves Le Gall told a press conference.

He called 2012 a "remarkable" year, noting that the company had launched seven Ariane 5 rockets to mark its 10th consecutive year without a failure, and had put a total of 75 tonnes of satellites into orbit.

Arianespace could even surpass 12 launches this year if one of its rivals is unable to honour their contracts, Le Gall noted, joking: "When they sign contracts we are the one that launches the satellites."

Competitors include the private US firm SpaceX, which developed its own launch vehicle over a period of 10 years and successfully delivered a payload last year to the International Space Station with its reusable Dragon launch vehicle.

The Russian rocket Proton has had a spotty launch record meanwhile, but its successor Angara is set for its first launch this year.

Elsewhere, the US-Russian company Sea Launch is in financial trouble, while Chinese rockets are not yet serious rivals for Arianespace.

The European group still depends on subsidies from countries that have backed it from the beginning, but Le Gall estimated that it needed a little more than 100 million euros last year, down from 125 million a year before, and 250 million 10 years earlier.

Ariane 5 is to be replaced by an Ariane 6 rocket, pending confirmation of that project next year. Arianespace forecasts that it would then be profitable without public aid.

- AFp/jc



Read More..

Verizon at CES 2013: Join us Tuesday, 4:30 p.m. PT (live blog)



Lowell McAdam officially took over as CEO and chairman of Verizon on Jan. 1, 2012. Just over a year into the job, McAdam will take the stage at CES on Tuesday to discuss Verizon's plans for 2013. The event kicks off at 4:30 p.m. PT (7:30 p.m. ET) on Tuesday, January 8, and CNET will be there to cover it live. We'll have a live blog full of news and analysis as it unfolds.


You can tune in to the blog and video stream here:


CNET's live coverage of Verizon's 2013 CES press conference
What should we expect? The rumor mill has been fairly dry in the lead-up to McAdams' announcement. Many carriers are waiting until Mobile World Congress next month to show off their latest smartphones. But surely McAdams have something up his sleeve. Join us tomorrow and find out in real time!
Read More..

Millions of foreclosure abuse victims to get checks

(CBS News) LOS ANGELES - Since the real estate implosion five years ago, major banks have been accused of fraudulent tactics to foreclose on thousands of Americans.

On Monday, the U.S. government reached a settlement with 10 banks who will pay $8.5 billion. About four million homeowners who lost their homes to foreclosure will be getting some compensation.

About 200 people showed up to a workshop in south Los Angeles last month trying to figure out if their banks improperly foreclosed on their homes. Now many of them will be getting a check.

10 banks agree to pay $8.5B for foreclosure abuse
Consumer advocates question $8.5B foreclosure deal

The 10 banks -- including Citi, JPMorgan Chase, Bank of America, and Wells Fargo -- will make $3.3 billion in direct payments to customers who were in foreclosure during 2009 and 2010.

Homeowners charged improper fees could be paid a couple hundred dollars. About $125,000 would go to homeowners who were foreclosed on even though they were up to date in their mortgage payments.

The settlement replaces an existing independent foreclosure review program that began in 2011 after it was discovered many banks approved foreclosure without actually reviewing the cases, sometimes hundreds a day.


Tunua Thrash

Tunua Thrash


/

CBS News

Tunua Thrash helps homeowners in Los Angeles navigate foreclosure. She worries the bank payouts won't go far enough.

"Certainly the fact that there have been many mistakes, and some homeowners have lost equity that could exceed that amount, is letting the banks off easy...as far making sure that homeowners are made whole," Thrash said.

The banks will also spend $5.2 billion on loan modifications and principal reductions for current homeowners. That may help James Bruce, who could lose his south L.A. home at the end of the month unless Citibank modifies his adjustable rate mortgage, which he can no longer afford.

"It started adjusting on me and it just got overbearing and I couldn't take it, so it just ate up all my savings and everything that I could muster up to pay that mortgage for over a year," Bruce said.

About 3.8 million people will be getting some payment from these 10 banks. Even homeowners whose foreclosures were processed properly will get something because the banks have decided it's simply easier to write a check than try to figure out who was actually harmed.

Read More..

Colo. Suspect Bought Ticket 12 Days Before Shooting













Accused Aurora movie theater gunman James Holmes bought his movie ticket 12 days before the shooting, it was revealed in court today during the emotional first day of a preliminary hearing.


Aurora Police Department homicide detective Matthew Ingui testified that there is no video surveillance of the actual shooting, but there are several photos of Holmes checking into the theater kiosk with his cellphone. He scanned his phone three times.


Surveillance footage shown in court for the first time also showed Holmes lingering by the concession stand for about three minutes before entering theater nine dressed in dark pants, a light colored shirt and a skull cap. He would later be caught wearing a bullet proof vest and a gas mask.


Another video showed the lobby the moment theater staff heard shots ring out. Some of them ducked behind counters as people started streaming out of the front door.


Ingui also testified about the positions of the bodies in the theater, strewn across seats and aisles.


Click here for full coverage of the Aurora movie theater shooting.


Holmes is accused of killing 12 people and wounding dozens more in the movie theater massacre.


Earlier in the day, two veteran police officers broke down on the stand, with one officer choking up when he described finding the body of a 6-year-old girl inside the theater.


Sgt. Gerald Jonsgaard needed a moment to compose himself as he described finding the little girl, Veronica Moser Sullivan, in the blood splattered theater.








Police Testify at Hearing for Accused Colorado Gunman Watch Video









James Holmes Tries to Harm Himself, Sources Say Watch Video









Aurora, Colorado Gunman: Neuroscience PhD Student Watch Video





An officer felt for a pulse and thought Veronica was still alive, Jonsgaard said, but the officer then realized he was feeling his own pulse.


The officers wiped away tears as they described the horror they found inside of theater nine.


Officer Justin Grizzle recounted seeing bodies lying motionless on the floor, surrounded by so much blood he nearly slipped and fell.


Grizzle, a former paramedic, says ambulances had not yet made it to the theater, so he began loading victims into his patrol car and driving to the hospital.


"I knew I needed to get them to the hospital now, " Grizzle said, tearing up. "I didn't want anyone else to die."


Grizzle drove six victims in four trips, saying that by the end there was so much blood in his patrol car he could hear it "sloshing around."


An officer who took the stand earlier today described Holmes as "relaxed" and "detached" when police confronted him just moments after the shooting stopped.


The first two officers to testify today described responding to the theater and spotting Holmes standing by his car at the rear of the theater on July 20, 2012. He allegedly opened fire in the crowded theater during the midnight showing of "The Dark Knight Rises."


Officer Jason Oviatt said he first thought Holmes was a cop because he was wearing a gas mask and helmet, but as he got closer realized he was not an officer and held Holmes at gunpoint.


Throughout the search and arrest, Holmes was extremely compliant, the officer said.


"He was very, very relaxed," Oviatt said. "These were not normal reactions to anything. He seemed very detached from it all."


Oviatt said Holmes had extremely dilated pupils and smelled badly when he was arrested.


Officer Aaron Blue testified that Holmes volunteered that he had four guns and that there were "improvised explosive devices" in his apartment and that they would go off if the police triggered them.


Holmes was dressed for the court hearing in a red jumpsuit and has brown hair and a full beard. He did not show any reaction when the officers pointed him out in the courtroom.


This is the most important court hearing in the case so far, essentially a mini-trial as prosecutors present witness testimony and evidence -- some never before heard -- to outline their case against the former neuroscience student.


The hearing at the Arapahoe County District Court could last all week. At the end, Judge William Sylvester will decide whether the case will go to trial.






Read More..

Ex-governor in North Korea with Google chief; seeks American's release


SEOUL (Reuters) - Former New Mexico Governor Bill Richardson and Google Executive Chairman Eric Schmidt began a controversial private mission to North Korea on Monday that will include an effort to secure the release of an imprisoned American.


The trip comes after North Korea carried out a long-range rocket test last month and as, according to satellite imagery, the reclusive state continues work on its nuclear testing facilities, potentially paving the way for a third nuclear bomb test.


Footage from North Korean state television showed Richardson and Schmidt at the Pyongyang airport on Monday evening.


"We are going to ask about the American who's been detained. A humanitarian private visit." Richardson said.


Richardson's efforts to seek the release of Kenneth Bae, a Korean-American tour guide who was detained last year will mark the latest in a series of high-profile visits over the years to free Americans detained by Pyongyang.


The delegation comprised Schmidt, his daughter, Richardson and Google executive Jared Cohen, according to South Korean news media and it arrived in Pyongyang on a flight from the Chinese capital, Beijing.


The mission has been criticized by the United States due to the sensitivity of the timing. The United States does not have diplomatic relations with North Korea and the isolated and impoverished state remains technically at war with U.S. ally South Korea.


"We continue to think the trip is ill-advised," U.S. State Department spokeswoman Victoria Nuland said in Washington. Last week she said the main U.S. objection was that the trip came so soon after North Korea's much-criticized December 12 rocket launch.


South Korea is in the midst of a transition to a new president who will take office in February, while Japan, another major U.S. ally in the region, has a new prime minister.


A U.S. official said the trip's timing was particularly bad from the Obama administration's point of view because it comes as the U.N. Security Council ponders how to respond to the North Korean missile launch.


"We are in kind of a classical provocation period with North Korea. Usually, their missile launches are followed by nuclear tests," said the official, who spoke on condition of anonymity.


"During these periods, it's very important that the international community come together, certainly at the level of the U.N. Security Council, to demonstrate to North Korea that they pay a price for not living up to their obligations."


Richardson, a former ambassador to the United Nations, has made numerous trips to North Korea in the past that have included efforts to free detained Americans. The reasons for Schmidt's involvement in the trip are not clear, though Google characterized it as "personal" travel.


Schmidt did not respond to requests for comment.


Richardson told CBS television last Friday that he had been contacted by Bae's family and that he would raise the issue while in North Korea.


Pyongyang's most notable success was securing a visit from former President Bill Clinton in 2009 to win the release of two American journalists.


Last year, Jared and Schmidt met defectors from North Korea, a state that ranks bottom in an annual survey of Internet and press freedom by Reporters Without Borders.


Media reports and think tanks say that officials from the North Korean government went to Google's headquarters in 2011, something the U.S. technology giant declined to comment on.


(Additional reporting by Cho Meeyoung and WASHINGTON Bureau; Editing by Michael Perry, Ron Popeski and David Brunnstrom)



Read More..

Samsung tips record Q4 profit of US$8.3b






SEOUL: South Korea's Samsung Electronics said Tuesday it expected to post a record operating profit of 8.8 trillion won ($8.3 billion) in the fourth quarter of 2012.

The predicted operating profit for October-December represents an 89 per cent rise from a year earlier, and would beat the record of 8.1 trillion won set in the previous quarter.

Samsung, the world's largest technology firm by revenue, was giving earnings guidance before announcing official results later this month.

Fourth-quarter sales were estimated at 56 trillion won, up 18.4 per cent from a year earlier, according to the company, which did not provide figures for each of its business divisions.

Samsung, also the world's leading smartphone and memory chip maker, did not disclose its net profit estimate.

For Samsung, 2012 was a watershed year that saw it take a giant bite out of Apple Inc as it carved out a dominant position in the global mobile computing market.

Having ended Nokia's 14-year rule as the world's top cell phone manufacturer, Samsung saw its share of the lucrative smartphone market surge to 31.3 per cent in the third quarter of 2012, up from just 3.3 per cent in late 2009.

It extended its lead over main rival Apple as the top maker of smartphones worldwide, according to research firm IHS iSuppli, which gave Samsung 28 per cent of the market in 2012, up from 20 per cent the previous year.

Apple's share rose to 20 per cent in 2012 from 19 per cent, IHS said.

While Apple continues to rely mainly on its iPhone series, Samsung produces dozens of smartphone models every year that address all segments of the market, from the high-end to the low-end.

- AFP/ac



Read More..