Saturday, April 16, 2011

Ubuntu Tip - "The password you use to login to your computer no longer matches that of your login keyring”

I've recently come  to use one of the applications in ubuntu that requires access to the keyring.
“Enter password to unlock your login keyring. The password you use to login to your computer no longer matches that of your login keyring”This issue can be solved in two ways:
- If you know the password he asks for:
You can change he asks to match the same password you use to login by making the following steps:
  1. Go to Applications -> Accessories -> Passwords and Encryption Keys.
  2. Right click Passwords:login
  3. Select "Change Password"
  4. Type in your old password and your new password twice to confirm (match it to your logon password of course) 
  5. Hit "OK".
- If you don't know the password he asks for:
The fix is to remove the file which store the password in. The file is located at “~/.gnome2/keyrings/default.keyring”. the "default" can have another name depends on which file is looking for.

What is the Keyring?
 Now let's take a look about the keyring. Keyring is like the password manager of firefox. It stores all the passwords for you without the need to remember & type the passwords each time you use it like the wireless password, mail accounts, FTP account .. etc

Monday, March 28, 2011

SVN Tips – Ignore file or directory in Subversion (eclipse)

Windows_Live_Sync_logo

Usually when we deal with the subversion we want to ignore specific files or directories from committing. These files may depend on local paths.

Common files are ignored:

.class files and SVN related files .

Maven as example

maven usually have the following project structure:

image

Committing the target folder will always generate conflicts when committing, so we should ignore this folder in SVN here’s how:

From eclipse window menu –> Preferences, then from the right menu Team –> Ignored Resources as shown below:

image

then choose add Pattern and enter “target”

Conclusion

Working with SVN could raise some issues with having some files created only for local testing, so ignoring these files will handle this issue.