Thursday, May 30, 2019

Amazfit Verge Mi Home error【Chinese Version】

Problem:
Mi Home voice control always show "connection timeout"

Solution:
1. Uninstall Amazfit app that download from Play Store.
2. Download Amazfit app APK via https://api-watch.huami.com/forwarding/watchAppLink
3. Login again in the app, your Mi Home in the watch will be working well.

Do let me know if you facing any issue.


   


Saturday, October 21, 2017

迅雷9下载问题 Xunlei download error

Error Message: "根据当地法律法规 文件无法下载"

决解方案: 打开文件夹 C:\Windows\System32\drivers\etc, 修改 "hosts" 文件, 加以下文字:

127.0.0.1 hub5btmain.sandai.net
127.0.0.1 hub5emu.sandai.net
127.0.0.1 upgrade.xl9.xunlei.com

重启迅雷


Solution: Go to C:\Windows\System32\drivers\etc, edit "hosts" file, add line below:

127.0.0.1 hub5btmain.sandai.net
127.0.0.1 hub5emu.sandai.net
127.0.0.1 upgrade.xl9.xunlei.com

Restart Xunlei

Tuesday, September 6, 2016

Ads pop up when unlock android phone

Problem
Every time unlock the android phone, some advertisement app will execute in fullscreen. You cannot found in downloaded apps, it overwrite the system app.

Device: Redmi note 3 pro
Rooted: No
MIUI: 7.17.9.0 (stable)



















sample ads


Solution
1. Go to Setting -> Installed apps -> All, find the app. My case the ads app under "com.android.comp.download.mgra001"
2. Disable the app (on bottom)




















You have to root your phone if want to uninstall the app

Please let me know if you have better solution.

Thursday, May 22, 2014

Install Hyper-V Server 2012 in VM VirtualBox

Problem
When try to install Hyper-V Server 2012 will get the error as below

Your PC needs to restart.
Please hold down the power button.
Error code: 0x000000C4
Parameters:
0×0000000000000091
...

Solution

  1. Go to command prompt by click START, type cmd.
  2. Find your virtual machine name that want to install Hyper-V server, to list down all existing virtual machine,type "c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" list vms
  3. After found the VM name, type this command: "c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata [your vmname] VBoxInternal/CPUM/CMPXCHG16B 1
  4. Done.
For more info pls refer http://en.wikipedia.org/wiki/X86-64

Tuesday, April 1, 2014

Chromecast connection to Unifi

To connect Google Chromecast to unifi internet:-


  1. Go to router setting, 192.168.0.1,TM Unifi router default username and password as below:
    • Username: operator
    • Password: h566UniFi
  2. Go to Advance -> Advance Network. 
  3. Check "Enable Multicast Streams"

Monday, March 10, 2014

NO USB Debugging Mode in Android 4.2


  1. Open Setting, go to About Device
  2. Tap the Build Number 7 times
  3. Developer Options menu will appear

Thursday, March 8, 2012

Pelco P and D protocol implementation in C#

PTZ camera have many type of protocol such as Samsumg-T, Pelco-P, Pelco-D, Bosch, Honeywell, Vicon, Ad, Samsung-E, Panasonic to supports commands. This is a full C# classes to control a PTZ cameras via RS422/485 Pelco 'P' and 'D' protocol.

Pelco-P
/*-------------------------------------------------------------------------------
* Author: Tamir Khason, 2004
* Email: tamir@khason.biz
* Web: http://www.dotnet.us/
*
* Freeware: Please do not remove this header
*
* File: P.cs
*
* Description: PELCO P Protocol Implementation dot.NET Way
* This is GPL software. Do with it as you want, but feed us back any improvements.
*
* This is a simple class to control a PELCO PTZ camera via RS422/485
* 'P' protocol. It supports all of the commands including UP, DOWN, IN, OUT, LEFT,
* RIGHT, NEAR, FAR, as well as all other extended commands.
*
* To use this, you need to put a RS232->RS422 adapter on the output
* of your desired serial port.
*
* The Pelco doesn't return ANY usefull info back, so you only really need 2-wire support
* (one way) communications out.
*
*
* Version: 1.4
* ------------------------------------------------------------------------------*/
using System;
using System.Collections;

//namespace Pelco
//{
///
/// dot.NET Implementation of Pelco P Protocol
///

public class P //: Pelco
{
private const byte STX = 0xA0;
private const byte ETX = 0xAF;

#region Pan and Tilt Commands
#region Data1
private const byte FocusFar = 0x01;
private const byte FocusNear = 0x02;
private const byte IrisOpen = 0x04;
private const byte IrisClose = 0x08;
private const byte CameraOnOff = 0x10;
private const byte AutoscanOn = 0x20;
private const byte CameraOn = 0x40;
#endregion

#region Data2
private const byte PanRight = 0x02;
private const byte PanLeft = 0x04;
private const byte TiltUp = 0x08;
private const byte TiltDown = 0x10;
private const byte ZoomTele = 0x20;
private const byte ZoomWide = 0x40;
#endregion

#region Data3
private const byte PanSpeedMin = 0x00;
private const byte PanSpeedMax = 0x40;
#endregion

#region Data4
private const byte TiltSpeedMin = 0x00;
private const byte TiltSpeedMax = 0x3F;
#endregion
#endregion

#region Enums
public enum PresetAction {Set,Clear,Goto}
public enum PatternAction {Start,Stop,Run}
public enum Action {Start,Stop}
public enum LensSpeed {Low=0x00,Medium=0x01,High=0x02,Turbo=0x03}
public enum Pan {Left = PanLeft,Right = PanRight}
public enum Tilt {Up = TiltUp,Down = TiltDown}
public enum Iris {Open = IrisOpen,Close = IrisClose}
public enum Zoom {Wide = ZoomWide,Tele = ZoomTele}
public enum Switch {On,Off}
public enum Focus {Near = FocusNear,Far = FocusFar}
#endregion

#region Extended Command Set
public byte[] Preset(uint deviceAddress, byte preset, PresetAction action)
{
byte m_action;
switch (action)
{
case PresetAction.Set:
m_action = 0x03;
break;
case PresetAction.Clear:
m_action = 0x05;
break;
case PresetAction.Goto:
m_action = 0x07;
break;
default:
m_action = 0x03;
break;
}
return Message.GetMessage(deviceAddress,0x00,m_action,0x00,preset);
}

public byte[] Flip(uint deviceAddress)
{
return Message.GetMessage(deviceAddress,0x00,0x07,0x00,0x21);
}

public byte[] ZeroPanPosition(uint deviceAddress)
{
return Message.GetMessage(deviceAddress,0x00,0x07,0x00,0x22);
}

public byte[] AutoScan(uint deviceAddress, Action action)
{
byte m_action;
if(action == Action.Start)
m_action = 0x09;
else
m_action = 0x0B;
return Message.GetMessage(deviceAddress,0x00,m_action,0x00,0x00);
}

public byte[] RemoteReset(uint deviceAddress)
{
return Message.GetMessage(deviceAddress,0x00,0x0F,0x00,0x00);
}

public byte[] Zone(uint deviceAddress,byte zone, Action action)
{
if(zone<0x01 & zone>0x08)
throw new Exception("Zone value should be between 0x01 and 0x08 include");
byte m_action;
if(action == Action.Start)
m_action = 0x11;
else
m_action = 0x13;

return Message.GetMessage(deviceAddress,0x00,m_action,0x00,zone);
}



public byte[] WriteToScreen(uint deviceAddress,string text)
{
if(text.Length > 40)
text = text.Remove(40,text.Length-40);
System.Text.Encoding encoding = System.Text.Encoding.ASCII;
byte[] m_bytes = new byte[encoding.GetByteCount(text)*8];
int i = 0;
byte m_scrPosition;
byte m_ASCIIchr;

foreach(char ch in text)
{
m_scrPosition = Convert.ToByte(i/8);
m_ASCIIchr = Convert.ToByte(ch);
Array.Copy(Message.GetMessage(deviceAddress,0x00,0x15,m_scrPosition,m_ASCIIchr),0,m_bytes,i,8);
i = i + 8;
}

return m_bytes;
}

public byte[] ClearScreen(uint deviceAddress)
{
return Message.GetMessage(deviceAddress,0x00,0x17,0x00,0x00);
}

public byte[] AlarmAcknowledge(uint deviceAddress, uint alarmID)
{
if(alarmID < 1 & alarmID>8)
throw new Exception("Only 8 alarms allowed for Pelco P implementation");
return Message.GetMessage(deviceAddress,0x00,0x19,0x00,Convert.ToByte(alarmID));
}

public byte[] ZoneScan(uint deviceAddress,Action action)
{
byte m_action;
if(action == Action.Start)
m_action = 0x1B;
else
m_action = 0x1D;
return Message.GetMessage(deviceAddress,0x00,m_action,0x00,0x00);
}

public byte[] Pattern(uint deviceAddress,PatternAction action)
{
byte m_action;
switch (action)
{
case PatternAction.Start:
m_action = 0x1F;
break;
case PatternAction.Stop:
m_action = 0x21;
break;
case PatternAction.Run:
m_action = 0x23;
break;
default:
m_action = 0x23;
break;
}
return Message.GetMessage(deviceAddress,0x00,m_action,0x00,0x00);
}

public byte[] SetZoomLensSpeed(uint deviceAddress, LensSpeed speed)
{
return Message.GetMessage(deviceAddress,0x00,0x25,0x00,(byte)speed);
}

public byte[] SetFocusLensSpeed(uint deviceAddress, LensSpeed speed)
{
return Message.GetMessage(deviceAddress,0x00,0x27,0x00,(byte)speed);
}

#endregion

#region Base Command Set

public byte[] CameraSwitch(uint deviceAddress,Switch action)
{
byte m_action = CameraOnOff;
if(action == Switch.On)
m_action += CameraOnOff; //Maybe wrong !!!
return Message.GetMessage(deviceAddress,m_action,0x00,0x00,0x00);

}

public byte[] CameraIrisSwitch(uint deviceAddress,Iris action)
{
return Message.GetMessage(deviceAddress,(byte)action,0x00,0x00,0x00);
}

public byte[] CameraFocus(uint deviceAddress,Focus action)
{
return Message.GetMessage(deviceAddress,(byte)action,0x00,0x00,0x00);
}

public byte[] CameraZoom(uint deviceAddress,Zoom action)
{
return Message.GetMessage(deviceAddress,0x00,(byte)action,0x00,0x00);
}

public byte[] CameraTilt(uint deviceAddress,Tilt action, uint speed)
{
if(speed32)
throw new Exception("Protocol Pelco P support 32 devices only");

Address = Byte.Parse((address-1).ToString());
Data1 = data1;
Data2 = data2;
Data3 = data3;
Data4 = data4;

CheckSum = (byte)(STX ^ Address ^ Data1 ^ Data2 ^ Data3 ^ Data4 ^ ETX);

return new byte[]{STX,Address,Data1,Data2,Data3,Data4,ETX,CheckSum};
}

}
}


//}











Pelco-D (I did some update from author source code for bugs)
/*-------------------------------------------------------------------------------
* Author: Tamir Khason, 2004
* Email: tamir@khason.biz
* Web: http://www.dotnet.us/
*
* Freeware: Please do not remove this header
*
* File: P.cs
*
* Description: PELCO P Protocol Implementation dot.NET Way
* This is GPL software. Do with it as you want, but feed us back any improvements.
*
* This is a simple class to control a PELCO PTZ camera via RS422/485
* 'P' protocol. It supports all of the commands including UP, DOWN, IN, OUT, LEFT,
* RIGHT, NEAR, FAR, as well as all other extended commands.
*
* To use this, you need to put a RS232->RS422 adapter on the output
* of your desired serial port.
*
* The Pelco doesn't return ANY usefull info back, so you only really need 2-wire support
* (one way) communications out.
*
*
* Version: 1.4
* ------------------------------------------------------------------------------*/
using System;
using System.Collections;

//namespace Pelco
//{
///
/// dot.NET Implementation of Pelco P Protocol
///

public class P //: Pelco
{
private const byte STX = 0xA0;
private const byte ETX = 0xAF;

#region Pan and Tilt Commands
#region Data1
private const byte FocusFar = 0x01;
private const byte FocusNear = 0x02;
private const byte IrisOpen = 0x04;
private const byte IrisClose = 0x08;
private const byte CameraOnOff = 0x10;
private const byte AutoscanOn = 0x20;
private const byte CameraOn = 0x40;
#endregion

#region Data2
private const byte PanRight = 0x02;
private const byte PanLeft = 0x04;
private const byte TiltUp = 0x08;
private const byte TiltDown = 0x10;
private const byte ZoomTele = 0x20;
private const byte ZoomWide = 0x40;
#endregion

#region Data3
private const byte PanSpeedMin = 0x00;
private const byte PanSpeedMax = 0x40;
#endregion

#region Data4
private const byte TiltSpeedMin = 0x00;
private const byte TiltSpeedMax = 0x3F;
#endregion
#endregion

#region Enums
public enum PresetAction {Set,Clear,Goto}
public enum PatternAction {Start,Stop,Run}
public enum Action {Start,Stop}
public enum LensSpeed {Low=0x00,Medium=0x01,High=0x02,Turbo=0x03}
public enum Pan {Left = PanLeft,Right = PanRight}
public enum Tilt {Up = TiltUp,Down = TiltDown}
public enum Iris {Open = IrisOpen,Close = IrisClose}
public enum Zoom {Wide = ZoomWide,Tele = ZoomTele}
public enum Switch {On,Off}
public enum Focus {Near = FocusNear,Far = FocusFar}
#endregion

#region Extended Command Set
public byte[] Preset(uint deviceAddress, byte preset, PresetAction action)
{
byte m_action;
switch (action)
{
case PresetAction.Set:
m_action = 0x03;
break;
case PresetAction.Clear:
m_action = 0x05;
break;
case PresetAction.Goto:
m_action = 0x07;
break;
default:
m_action = 0x03;
break;
}
return Message.GetMessage(deviceAddress,0x00,m_action,0x00,preset);
}

public byte[] Flip(uint deviceAddress)
{
return Message.GetMessage(deviceAddress,0x00,0x07,0x00,0x21);
}

public byte[] ZeroPanPosition(uint deviceAddress)
{
return Message.GetMessage(deviceAddress,0x00,0x07,0x00,0x22);
}

public byte[] AutoScan(uint deviceAddress, Action action)
{
byte m_action;
if(action == Action.Start)
m_action = 0x09;
else
m_action = 0x0B;
return Message.GetMessage(deviceAddress,0x00,m_action,0x00,0x00);
}

public byte[] RemoteReset(uint deviceAddress)
{
return Message.GetMessage(deviceAddress,0x00,0x0F,0x00,0x00);
}

public byte[] Zone(uint deviceAddress,byte zone, Action action)
{
if(zone<0x01 & zone>0x08)
throw new Exception("Zone value should be between 0x01 and 0x08 include");
byte m_action;
if(action == Action.Start)
m_action = 0x11;
else
m_action = 0x13;

return Message.GetMessage(deviceAddress,0x00,m_action,0x00,zone);
}



public byte[] WriteToScreen(uint deviceAddress,string text)
{
if(text.Length > 40)
text = text.Remove(40,text.Length-40);
System.Text.Encoding encoding = System.Text.Encoding.ASCII;
byte[] m_bytes = new byte[encoding.GetByteCount(text)*8];
int i = 0;
byte m_scrPosition;
byte m_ASCIIchr;

foreach(char ch in text)
{
m_scrPosition = Convert.ToByte(i/8);
m_ASCIIchr = Convert.ToByte(ch);
Array.Copy(Message.GetMessage(deviceAddress,0x00,0x15,m_scrPosition,m_ASCIIchr),0,m_bytes,i,8);
i = i + 8;
}

return m_bytes;
}

public byte[] ClearScreen(uint deviceAddress)
{
return Message.GetMessage(deviceAddress,0x00,0x17,0x00,0x00);
}

public byte[] AlarmAcknowledge(uint deviceAddress, uint alarmID)
{
if(alarmID < 1 & alarmID>8)
throw new Exception("Only 8 alarms allowed for Pelco P implementation");
return Message.GetMessage(deviceAddress,0x00,0x19,0x00,Convert.ToByte(alarmID));
}

public byte[] ZoneScan(uint deviceAddress,Action action)
{
byte m_action;
if(action == Action.Start)
m_action = 0x1B;
else
m_action = 0x1D;
return Message.GetMessage(deviceAddress,0x00,m_action,0x00,0x00);
}

public byte[] Pattern(uint deviceAddress,PatternAction action)
{
byte m_action;
switch (action)
{
case PatternAction.Start:
m_action = 0x1F;
break;
case PatternAction.Stop:
m_action = 0x21;
break;
case PatternAction.Run:
m_action = 0x23;
break;
default:
m_action = 0x23;
break;
}
return Message.GetMessage(deviceAddress,0x00,m_action,0x00,0x00);
}

public byte[] SetZoomLensSpeed(uint deviceAddress, LensSpeed speed)
{
return Message.GetMessage(deviceAddress,0x00,0x25,0x00,(byte)speed);
}

public byte[] SetFocusLensSpeed(uint deviceAddress, LensSpeed speed)
{
return Message.GetMessage(deviceAddress,0x00,0x27,0x00,(byte)speed);
}

#endregion

#region Base Command Set

public byte[] CameraSwitch(uint deviceAddress,Switch action)
{
byte m_action = CameraOnOff;
if(action == Switch.On)
m_action += CameraOnOff; //Maybe wrong !!!
return Message.GetMessage(deviceAddress,m_action,0x00,0x00,0x00);

}

public byte[] CameraIrisSwitch(uint deviceAddress,Iris action)
{
return Message.GetMessage(deviceAddress,(byte)action,0x00,0x00,0x00);
}

public byte[] CameraFocus(uint deviceAddress,Focus action)
{
return Message.GetMessage(deviceAddress,(byte)action,0x00,0x00,0x00);
}

public byte[] CameraZoom(uint deviceAddress,Zoom action)
{
return Message.GetMessage(deviceAddress,0x00,(byte)action,0x00,0x00);
}

public byte[] CameraTilt(uint deviceAddress,Tilt action, uint speed)
{
if(speed32)
throw new Exception("Protocol Pelco P support 32 devices only");

Address = Byte.Parse((address-1).ToString());
Data1 = data1;
Data2 = data2;
Data3 = data3;
Data4 = data4;

CheckSum = (byte)(STX ^ Address ^ Data1 ^ Data2 ^ Data3 ^ Data4 ^ ETX);

return new byte[]{STX,Address,Data1,Data2,Data3,Data4,ETX,CheckSum};
}

}
}


//}

Tuesday, July 26, 2011

CyanogenMod cannot download google market apps



Platform: CyanogenMod 7 (Android)


Error: Trying to install market apps, it starts downloading for a second or so and then stops. It happen on large app (more than 5Mb) files.


Reason :
To download an app from google market, android required a cache.This cache folder is located in /cache partition (it's called /cache/download).
But this partition (with a size of about 40Mb on HTC Desire) contains also others caches, notably the dalvik-cache(used to accelerate the boot of android) which has a size of...35Mb !
That why "big" apps can't be downloaded using the market but small ones can be downloaded without any issues.
This also explain the "not enough space" message in logs which does not refer to the internal or external memory but to the space of /cache/download folder.
Concerning S2E, it's only works if your sdcard is mounted under /sd-ext. For 
users mounted on /sdcard, another solution is to create a symlink of /cache/download which point to a folder in your sdcard.



Solution
To clarify for anyone who isn't quite sure how to do this, enter these commands in the terminal emulator:
mkdir /mnt/sdcard/market-download-cache
su
cd /cache
mv download download.bak
ln -s /mnt/sdcard/market-download-cache download
ls -ahl .

the last step (ls -ahl .) is intended to verify that /cache/download points to /mnt/sdcard/market-download-cache; there should be an entry that should look somewhat like "lrwxrwxrwx 1 root root 33 Apr 14 03:35 download -> /mnt/sdcard/market-download-cache".

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.

Sunday, September 13, 2009

Canon DSLR Error 99

The "Error 99″ is generic in nature as the exact cause of the error is undetermined until examined by a Canon Factory technician. This error condition may be caused by several different factors. To assist in narrowing down the possible cause of this error we have provided the following troubleshooting checklist. Please note not all items will apply depending on your camera configuration. After attempting each procedure, attempt to use the camera to determine if the error condition is resolved.

NON-CANON LENS
A non-Canon lens when used on a Canon EOS body may not provide full electronic communication and may cause error “99″ to be displayed. To determine if this is the source of the error, considering testing your camera with a Canon EF lens. You may need to consider having your lens manufacturer inspect your lens for communication/compatibility issues with the Canon EF auto-focus system if the issue only occurs with your non-Canon lens. Usually such issues can be corrected through hardware and/or firmware updates provided by the lens manufacturer. However, Canon does not endorse or provide any guarantees of reliability when third party lenses are used.

CLEANING CONTACTS
Oils, dirt, dust and other factors may cause communication issues between the camera body and the attached lens. Please find instructions below to correctly clean the contacts on the lens and on the camera body.

- Remove the lens from the camera body
- Using the “eraser head” of a standard pencil, gently clean the contacts on the lens
- While holding the camera in a downward position (to avoid debris from falling into camera), clean the contacts (pins) on the lens mount
- After cleaning the lens and body contacts, use a soft cloth to gentle wipe the contacts clean
- Attempt to use the camera again to see if the problem has been resolved.

INSUFFICIENT OR LOW BATTERY POWER
- Ensure the battery pack being used has sufficient power (if in doubt recharge battery pack)
- Remove and re-attach the battery to ensure a proper connection (remove the battery pack for at least 60 seconds)
- If a battery grip is being utilized, remove the grip to determine if this is the cause of the error

LENS ISSUE
- Remove and re-attach the lens to see if the error clears.
- To further determine the source of this condition, you may consider testing the camera with another lens. If this error seems to occur only with a specific lens, the lens may require inspection.

MEMORY CARD
- It some circumstances, this error can be due to the memory card be used.
- Attempt to use another memory card in the camera, to see if the condition clears.
- Additionally it is recommended the card be formatted in the camera for best compatibility. For more information on formatting the memory card, consult your camera’s operational manual.

RESETTING CAMERA
- If all the above suggestions have failed to resolve this condition, then it is recommended the camera be reset to default settings.
- To reset the camera to default settings, it is necessary to be in one of the creative shooting modes (i.e P, Tv, Av, M).
- Reset any personal or custom functions as well (if applicable).

If "Error 99″ continues to display, I would like to suggest that your EOS body be forwarded directly to our Factory Service Department at the address noted below. Upon receipt, we will have a technician throughly inspect your camera body and advise you of the findings. We will then be in a better position to determine how we may best assist you in this matter. Please include your name, address, daytime telephone number, copy of your bill of sale and a brief description of the symptom(s). Upon receipt, we will have a technician thoroughly inspect your product and advise you of the findings.

Thursday, August 20, 2009

15 Malaysia

1.


2.

If u did not get the meaning, u can refer here.

3.


4.


5.


6.


7.


8.


9.


10.


11.


12.


13.


14.


15.

Thursday, February 12, 2009

太极拳说十要

1.虚灵顶劲 顶劲者,头容正直,神贯于顶也。不可用力,用力则项强,气血不能流通,须有虚灵自然之意。非有虚灵顶劲,则精神不能提起也。

  2.含胸拔背 含胸者,胸略内涵,使气沉于丹田也。胸忌挺出,挺出则气拥胸际,上重下轻,脚跟易于浮起。拔背者,气贴于背也,能含胸则自能拔背,能拔背则能力由脊发,所向无敌也。

  3.松腰 腰为一身之主宰,能松腰然后两足有力,下盘稳固;虚实变化皆由腰转动,故曰:“命意源头在腰际”,由不得力必于腰腿求之也。

  4.分虚实 太极拳术以分虚实为第一义,如全身皆坐在右腿,则右腿为实,左腿为虚;全身皆坐在左腿,则左腿为实,右腿为虚。虚实能分,而后转动轻灵,毫不费力;如不能分,则迈步重滞,自立不稳,而易为人所牵动。

  5.沉肩坠肘 沉肩者,肩松开下垂也。若不能松垂,两肩端起,则气亦随之而上,全身皆不得力矣。坠肘者,肘往下松垂之意,肘若悬起,则肩不能沉,放人不远,近于外家之断劲矣。

  6.用意不用力 太极拳论云:此全是用意不用力。练太极拳全身松开,不便有分毫之拙劲,以留滞于筋骨血脉之间以自缚束,然后能轻灵变化,圆转自如。或疑不用力何以能长力? 盖人身之有经络,如地之有沟壑,沟壑不塞而本行,经络不闭则气通。如浑身僵劲满经络,气血停滞,转动不灵,牵一发而全身动矣。若不用力而用意,意之所至, 气即至焉,如是气血流注,日日贯输,周流全身,无时停滞。久久练习,则得真正内劲,即太极拳论中所云:“极柔软,然后极坚刚”也。太极拳功夫纯熟之人,臂 膊如绵裹铁,分量极沉;练外家拳者,用力则显有力,不用力时,则甚轻浮,可见其力乃外劲浮面之劲也。不用意而用力,最易引动,不足尚也。

  7.上下相随 上下相随者,即太极拳论中所云:其根在脚,发于腿,主宰于腰,形于手指,由脚而腿而腰,总须完整一气也。手动、腰动、足动,眼神亦随之动,如是方可谓之上币相随。有一不动,即散乱也。

  8.内外相合 太极拳所练在神,故云:“神为主帅,身为驱使”。精神能提得起,自然举动轻灵。架子不外虚实开合;所谓开者,不但手足开,心意亦与之俱开,所谓合者,不但手足合,心意亦与之俱合,能内外合为一气,则浑然无间矣。

  9.相连不断 外家拳术,其劲乃后天之拙劲,故有起有止,有线有断,旧力巳尽,新力未生,此时最易为人所乘。太极拳用意不用力,自始至终,绵绵不断,周而复始,循环无穷。原论所谓“如长江大河,滔滔不绝”,又日 “运劲如抽丝”,皆言其贯串一气也。

  10.动中求静 外家拳术,以跳掷为能,用尽气力,故练习之后,无不喘气者。太极拳以静御动,虽动犹静,故练架子愈慢愈好。使则呼吸深长,气沉丹田,自无血脉愤张之弊。学者细心休会,庶可得其意焉。

杨澄甫口述 陈微明笔录

Wednesday, February 4, 2009

現代浮世繪

沒錢的時候,養豬;
有錢的時候,養狗;

沒錢的時候,在家裡吃野菜;
有錢的時候,在酒店吃野菜;

沒錢的時候,在馬路上騎自行車;
有錢的時候,在客廳裡騎自行車;

沒錢的時候想結婚,有錢的時候想離婚;
沒錢的時候老婆兼秘書,有錢的時候秘書兼老婆;
沒錢的時候假裝有錢,有錢的時候假裝沒錢。

人啊,都不講實話:
說股票是毒品,都在玩;
說金錢是罪惡,都在撈;
說美女是禍水,都想要;
說高處不勝寒,都在爬;
說煙酒傷身體,就不戒;
說天堂最美好,都不去!

當今社會,窮吃肉,富吃蝦,領導幹部吃王八;
男想高,女想瘦,狗穿衣裳人露肉;
過去把第一次留給丈夫,現在把第一胎留給丈夫;
鄉下早晨雞叫人,城裡晚上人叫雞;
舊社會戲子賣藝不賣身,新社會演員賣身不賣藝。