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  

*** fatal error - couldn't allocate heap or How to change cygwin's Maximum Memory

Problem :
In cygwin sometimes you may face get below


C:\>bash --login
      4 [main] bash 18324 c:\cygwin\bin\bash.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x6D0000, top 0x720000, reserve_size 323584, allocsize 327680, page_const 4096

Solution:


Read this link to understand and solve this issue 

http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html

run below command  to fix it
regtool -i set /HKLM/Software/Cygnus\ Solutions/Cygwin/heap_chunk_in_mb 2048

How to get Airtel Prepaid itemised monthly bill

In India generally we will get itemised bill for postpaid connections and not for prepaid bills.

Incase if you need prepaid bills for a particular month, airtel will send prepaid bill to your email address when you request them. You will be charged Rs.50/- for this service. charging is done through deducting in your prepaid account balance. ( This charge is when i am writing this article  Feb 2011).

send sms with below contents to the number 121

EPREBILL month_name  mail_id


Ex - 
EPREBILL July user@mail.com




If you find this information helpful, please click the ads below

//dev/project-app/...#head - file not in client view.

Problem:

while trying to get some file it fails and throws error

//dev/project-app/...#head - file not in client view.
p4 sync //dev/project-app/...#head
    no files updated
    1 warning reported

Solution:

Perforce depot or path not in view. Edit your workspace to include the required path.

For example in above case - GO   Connection -> Edit current workspace -> click tab on 'View' -> choose the required depot and include tree(dev)

Note - when you press 'Apply' it will ask for "Get latest revisions of all files added to your workspace view? "
choose 'Don't Get Latest'