Sep 18, 2012

Unicode server permits only unicode enabled clients. - Internationalization and Localization

Problem: Unicode clients require a unicode enabled server.

If P4CHARSET is set in the client , but the service is not operating in internationalized mode, the service returns the following error message:

Unicode clients require a unicode enabled server.

Solution:
For Perforce services operating in the default (non-Unicode mode), P4CHARSET must be left unset (or set to none) on user workstations.P4CHARSET only affects files of type unicode and utf16; non-unicode files are never translated.

Example:

c:\p4\project\>p4 edit startbuild
Unicode clients require a unicode enabled server.

c:\p4\project>set P4CHARSET=none
c:\p4\project>p4 edit startbuild
//project/startbuild#1 - opened for edit



For Perforce services operating in Unicode mode, P4CHARSET must be set on user machines. If P4CHARSET is unset, but the service is operating in Unicode mode, Perforce applications return the following error message:
Unicode server permits only unicode enabled clients.

c:\p4\project\>set P4CHARSET=UTF-8
c:\p4\project\>p4 edit startbuild
Character set must be one of:
none, utf8, utf8-bom, iso8859-1, shiftjis, eucjp, iso8859-15,
iso8859-5, macosroman, winansi, koi8-r, cp949, cp1251,
utf16, utf16-nobom, utf16le, utf16le-bom, utf16be,
utf16be-bom, utf32, utf32-nobom, utf32le, utf32le-bom, utf32be,
or utf32be-bom
Check P4CHARSET and your '-C' option.

c:\p4\project\>set P4CHARSET=utf8

For further information refer
http://www.perforce.com/perforce/r12.2/manuals/cmdref/env.P4CHARSET.html
http://kb.perforce.com/article/66/internationalization-and-localization
http://cygwin.com/cygwin-ug-net/setup-locale.html
 

Jul 27, 2012

How to add 'open Command Prompt Here' open in windows 7 while right clicking a directory ?

In windows, under xp and few other flavours we have to add certain values in registry to get the option of opening command prompt from a particular directory.

But windows 7 has this feature by default, but you have to hold 'shift' and do a right click.

Default behaviour when doing a right click on a directory
 when you hold shift and right click on a folder ,you will see the option "Open command prompt here"






Jul 25, 2012

How to find a machine whether its a physical machine or a Virtual machine in linux

You can get this information by using the unix utility, dmidecode.
dmidecode  is a tool for dumping a computerâs DMI (some say SMBIOS) ta-ble contents in a human-readable format. This table contains a description  of  the  systemâs  hardware  components,  as well as other useful pieces of information such as serial numbers and BIOS revision.

Note: This command should be used as root. or you can use "sudo" to execute it.


Sample Usage

In a virtual machine

[root@server2 tmp]# /usr/sbin/dmidecode |grep -i "vm"
                Manufacturer: VMware, Inc.
                Product Name: VMware Virtual Platform
                Serial Number: VMware-24 34 c4 76 3b 1a 94 8d-99 08 5d cc 81 04                            17 25
                        VME (Virtual mode extension)
                        VME (Virtual mode extension)
                Description: VMware SVGA II
                String 1: [MS_VM_CERT/SHA1/27d66596a61c48dd323409dfd5126e33f59                           ae7]
                
                
For a physical machine it will be like below

[mohan@server2 storage]# sudo /usr/sbin/dmidecode |grep -i "vm"
                VME (Virtual mode extension)
                VME (Virtual mode extension)
                

Oct 10, 2011

How to Find Uptime in windows


In Windows to find how long the system is ON or UP after starting, you can execute  the command 'net stats srv' in command prompt.
There is another one utility called 'uptime.exe' for the same purpose but you have download them explicitly.


Mar 24, 2011

The following boot-start or system-start driver(s) failed to load: black

Problem
System hangs with leaving below description in Event Viewer.
"The following boot-start or system-start driver(s) failed to load:  black"

Solution 

Could not understand the rootcause of the problem.  But we can stop this by setting  below registry key value to 4


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Black

Choose the Start DWORD and set the value to 4










Mar 10, 2011

How to find filetype in windows

There is a utility called "file" in unix which determines filetype  of a file. There is no default similar utility available in windows.  After trying few utilities available online, I found this one more helpful.

http://home.fnal.gov/~jklemenc/dl/filetype.zip

Find more description about the tool at http://home.fnal.gov/~jklemenc/filetype.html

I have posted screenshot of an example


C:\Documents and Settings\tig\Desktop>filetype.exe
FileType.exe
  by: Joe Klemencic
  Copyright 2004
 Usage:
   FILETYPE.EXE -i [-r] [-o ] [-v] [-?]
                 -i - Inspect a single file or all files in a directory
                -r  - Rename the file with the correct extension (-o ignored)
                -o  - Output path for file copies (creates if not exist)
                -v  - Verbose output
                -?  - This help text
  C:\Documents and Settings\tig\Desktop>filetype.exe -i  "Reach Out-participants.pdf"
Reach Out-participants.pdf (.pdf) "Adobe PDF File"
 C:\Documents and Settings\tig\Desktop>filetype.exe -i  "Perl One Liners.htm"
Perl One Liners.htm (.txt) "Text file"
 C:\Documents and Settings\tig\Desktop>filetype.exe -i  SyncToySetupPackage_v21_x86.exe
SyncToySetupPackage_v21_x86.exe (.exe) "Executable File"
 C:\Documents and Settings\tig\Desktop>filetype.exe -i  toolsmanual.dvi
Could not identify toolsmanual.dvi, skipping....
 C:\Documents and Settings\tig\Desktop>filetype.exe -i  quickCooking.do
quickCooking.do (.pdf) "Adobe PDF File"








Feb 16, 2011

How to check windows installer version in windows

To know the version of windows installer available in your windows, check the version of msi.dll present in c:\WINNT\system32

select   msi.dll -> rightclick -> Properties -> choose "Version" tab

It will have information like

File version : 3.1.4000.4039