Wednesday, August 22, 2012

errno


#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
#define EINTR 4 /* Interrupted system call */
#define EIO 5 /* I/O error */
#define ENXIO 6 /* No such device or address */
#define E2BIG 7 /* Argument list too long */
#define ENOEXEC 8 /* Exec format error */
#define EBADF 9 /* Bad file number */
#define ECHILD 10 /* No child processes */
#define EAGAIN 11 /* Try again */
#define ENOMEM 12 /* Out of memory */
#define EACCES 13 /* Permission denied */
#define EFAULT 14 /* Bad address */
#define ENOTBLK 15 /* Block device required */
#define EBUSY 16 /* Device or resource busy */
#define EEXIST 17 /* File exists */
#define EXDEV 18 /* Cross-device link */
#define ENODEV 19 /* No such device */
#define ENOTDIR 20 /* Not a directory */
#define EISDIR 21 /* Is a directory */
#define EINVAL 22 /* Invalid argument */
#define ENFILE 23 /* File table overflow */
#define EMFILE 24 /* Too many open files */
#define ENOTTY 25 /* Not a typewriter */
#define ETXTBSY 26 /* Text file busy */
#define EFBIG 27 /* File too large */
#define ENOSPC 28 /* No space left on device */
#define ESPIPE 29 /* Illegal seek */
#define EROFS 30 /* Read-only file system */
#define EMLINK 31 /* Too many links */
#define EPIPE 32 /* Broken pipe */
#define EDOM 33 /* Math argument out of domain of func */
#define ERANGE 34 /* Math result not representable */

Thursday, August 2, 2012

Solution : Eclipse CDT to Implement Interface in C++

1. Go to the header file
2. Go to Menu item ( Source > Implement method )
3. Select the method you want to implement or select all
4. The diff will show you the difference
5. Once you accept (click finish) it will auto populate the cpp file.

- Mihir Patel

Wednesday, August 1, 2012

Enable Column Select in Eclipse

To view/change the setting 


1. go to window -> preferences 
2. type: 'keys' 
3. when the key preference page opens you can type 'toggle block selection'


for me this setting is shift + alt +a 

Tuesday, July 31, 2012

Solution : Lenovo C30 Workstation + Centos

Use Centos 6.2 disk for installation

When installation countdown starts hit tab

use the Boot (Basic Video) mode to install the OS

 

- Mihir Patel

 

Note:- This is required as the base video that comes with the Centos 6.2 Disk crashes at the start of install and you would  see a blank screen , if you use normal install mode.

Saturday, July 28, 2012

How do you delete extra home screen pages on samsung galaxy s2

Just wipe with 2 fingers towards eachother. Then the homescreen-overview will appear. Now you can slide the homescreen you want to delete to the trashbin at the bottom of the screen.

How do you delete extra home screen pages on samsung galaxy s3

Just wipe with 2 fingers t How do you delete extra home screen pages on samsung galaxy s owards eachother. Then the homescreen-overview will appear. Now you can slide the homescreen you want to delete to the trashbin at the bottom of the screen.

Thursday, July 19, 2012

socat printing hex data


user -x option to print x values.




socat -xd udp-recv:2000 stdout

example output :

> 2012/07/19 11:17:42.705658  length=9 from=0 to=8
 10 02 45 04 78 1c 54 10 03
ExT> 2012/07/19 11:17:43.755924  length=9 from=9 to=17

Tuesday, July 3, 2012

How to disable the SMS security for GMAIL


Turning off 2-step verification

back forward

Did your email client or applications stop working when you turned on 2-step verification? Don't fret -- you can get applications and devices that need access to your Google Account working again in minutes using application-specific passwords.

Turning off 2-step verification

  1. Visit the Using 2-step verification page under your Google Account settings. Sign in with your username, password, and verification code if prompted.
  2. Click Turn off 2-step verification.
  3. A pop-up window will appear to confirm that you want to turn off 2-step verification. Click OK.

Ref: Google Support

Wednesday, June 13, 2012

Fixed: An error occurred while gathering user information (Thinkvantage System Update)


Make sure you are logged in as an Administrator or a user with administrative rights to apply the following fix.
Step 1
 Remove all previous log files from C:\program files\lenovo\system update\logs

Step 2 
Click Start -> Run -> Secpol.msc
Click Security Options.
Find System cryptography: Use FIPS compliant algorithms for encryption, hashing and signing
Disable this setting

Step 3
Navigate to:
C:\Program Files\Lenovo\System Update\session\system\SSClientCommon
For 64 bit OS
C:\Program Files (x86)\Lenovo\System Update\session\system\SSClientCommon
Open file MappingInterface.xml using Notepad
Add the following lines:
WIN7-PRO.SP1
Windows 7 Professional
Service Pack 1
7.SP1
Windows 7
If you're using other version than Professional, just change WIN7-PRO.SP1 to WIN7-UTL.SP1 etc and 4th line to WINDOWS 7 Ultimate.
You should be able to run the System Update now.
This fix can work for any other Windows Operating systems as long as correct name and version is put into the above code.
For Windows Server 2008, try the following code, I've put together. Bare in mind that it is not tested so please take a back up of the original XML file stated above before making changes on the server.
 WINSERVER2008-Standard.SP1
 Windows Server 2008 Standard
 Service Pack 1
 2008.SP1
 Windows Server 2008

Fixed : Windows User account repeatedly locked for no reason ?


Situation 1 : Forgotten PC with an open session and Outlook running

If you leave Outlook running on a PC you forgot somewhere hidden in your office, it will go on using the same credential for ever. Even after the policy forced you to change your password, it will go on using the old credentials and ultimately lock out your account…

Situation 2 : “remember password” box checked while accessing a network share

If you check the “remember password” box when you access a network share, it will use the same password for ever. Even after the policy forced you to change your password. And then, when you’ll want to access that share again, it will use the old credentials and lock out your account.

Solution :
using command prompt fire following command

rundll32.exe keymgr.dll, KRShowKeyMgr

and remove all cached passwords one by one. Now you just need to restart.