Thursday, November 18, 2010

MSSQL: the process could not execute 'sp_replcmds'

Platform:
Microsoft SQL server

Error:
While replications,  the Log Reader Agent status shown "the process could not execute 'sp_replcmds'...

Solution:
Change database owner to sa.

Step:
  1. Select "Databases", open "Object Explorer Details"(shortcut F7), you can see the current owner for every database.
  2. Change the owner to sa as script below:
    •  sp_changedbowner ''
  3. Repeat step 1, click refresh button to check the new database owner.
  4. Reinitialize the publications by click "Reinitialize All Subscriptions" .

Wednesday, June 2, 2010

How to empty Trash in Ubuntu (UNR)

Tested in Ubuntu Netbook Remix 10.04

Two ways to empty trash
1. Complete it manually in Terminal
     sudo rm -rf /home//.local/share/Trash/files/*

2. In "Files & folders", click any folder icon to open File browser. Click "Go" in the toolbar, then select Trash. Simply click the "Empty Trash", your Trash folder will be empty.

Friday, May 14, 2010

Mobile Broadband USB modem in Ubuntu

1. Open a terminal

2. Install udev-extras from the standard Ubuntu repositories:
    sudo apt-get update && sudo apt-get install udev-extras
    or
    sudo apt-get update && sudo apt-get install udev

3. Add a custom udev rule for the Huawei E1550 by typing this line:
    echo 'SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"' | sudo tee  /etc/udev/rules.d/45-huawei1550.rules

4. Configure the Mobile Broadband on Network Manager. (right mouse the Network icon near the volume icon).

5. Select Mobile Boardband -> Add

6. After added, restart the pc.

7. Cheers...

Thursday, April 8, 2010

Change the font

MILWAUKEE – Here's a way you might save $20 this year: Change the font in the documents you print.

Because different fonts require different amounts of ink to print, you could be buying new printer cartridges less often if you wrote in, say, Century Gothic rather than Arial. Schools and businesses could save thousands of dollars with font changes.

Data on the subject from Printer.com, a Dutch company that evaluates printer attributes, persuaded the University of Wisconsin-Green Bay to make a switch. Diane Blohowiak, coordinator of information-technology user support, has asked faculty and staff to use Century Gothic for all printed documents. The school also plans to change its e-mail system so it uses Century Gothic.

"The feedback we've gotten so far has been positive," she said. "Century Gothic is very readable."

The school of 6,500 students spends about $100,000 per year on ink and toner cartridges. Although students and staff can change the default font to something more ink-intensive, Blohowiak said the university expects to save $5,000 to $10,000 per year with the font switch.

When Printer.com tested popular fonts for their ink-friendly ways, Century Gothic and Times New Roman topped the list. Calibri, Verdana, Arial and Sans Serif were next, followed by Trebuchet, Tahoma and Franklin Gothic Medium. Century Gothic uses about 30 percent less ink than Arial.

The amount of ink a font drains is mainly driven by the thickness of its lines. A font with "narrow" or "light" in its name is usually better than its "bold" or "black" counterpart, said Thom Brown, an ink researcher at Hewlett-Packard Co., the world's top maker of printers.

Also, serif fonts — those with short horizontal lines at the top and bottom of characters — tend to use thinner lines and thus less ink than a "sans serif" counterpart.

But while using less ink at home can help you buy roughly one fewer printer cartridge each year, it's not necessarily better for the environment.

That's because some fonts that use less ink, including Century Gothic, are also wider. A document that's one page in Arial could extend to a second page if printed in Century Gothic. Blohowiak said her research suggests that ink comprises the main cost of a printout, but the environmental costs of paper are probably higher.

"Maybe the individual characters use less ink, but if you're using more paper, that's not so green, is it?" said Allan Haley, director of "words and letters" at Monotype Imaging Inc. in Woburn, Mass., which developed Century Gothic.

Also, Century Gothic was designed for limited blocks of text such as titles and headlines, not for full documents, said Haley, who describes fonts as his "children." Despite Printer.com's research and UW-Green Bay's experience, Haley said he still recommends Times New Roman or Arial for their readability.

The standard advice for trimming printing expenses still applies: Print in "draft mode," if you can. Use both sides of a page and do a print preview to make sure you're not printing pages with useless text such as a copyright line. Using an ink-saving font is just one more technique to consider.

And the greenest way to save on ink is not to print at all.

That's the philosophy Microsoft Corp. said it uses in deciding which fonts to include in its Outlook and Word applications. The more pleasing a font looks on the screen, the less tempted someone will be to print, said Simon Daniels, a program manager for Microsoft's typography group.

That's why the company changed its defaults in Office 2007 from Arial and Times New Roman to Calibri and Cambria, he said.

"We're trying to move the threshold of when people hit the print button," he said.

By DINESH RAMDE, Associated Press Writer Dinesh Ramde, Associated Press Writer


Times New Roman
That's the philosophy Microsoft Corp. said it uses in deciding which fonts to include in its Outlook and Word applications. The more pleasing a font looks on the screen, the less tempted someone will be to print, said Simon Daniels, a program manager for Microsoft's typography group.
That's why the company changed its defaults in Office 2007 from Arial and Times New Roman to Calibri and Cambria, he said.

Cambria
That's the philosophy Microsoft Corp. said it uses in deciding which fonts to include in its Outlook and Word applications. The more pleasing a font looks on the screen, the less tempted someone will be to print, said Simon Daniels, a program manager for Microsoft's typography group.
That's why the company changed its defaults in Office 2007 from Arial and Times New Roman to Calibri and Cambria, he said.

Cambria
That's the philosophy Microsoft Corp. said it uses in deciding which fonts to include in its Outlook and Word applications. The more pleasing a font looks on the screen, the less tempted someone will be to print, said Simon Daniels, a program manager for Microsoft's typography group.
That's why the company changed its defaults in Office 2007 from Arial and Times New Roman to Calibri and Cambria, he said.