Posts

Windows Sticky Notes Shortcut keys.

CTRL + L Left Alignment CTRL + E Center Alignment CTRL + R Right Alignment   CTRL + B Bold CTRL + I Italic CTRL + U Underline CTRL + T Strike Through   CTRL + SHIFT + > Increase Font Size CTRL + SHIFT + < Decrease Font Size   CTRL + SHIFT + L (1 Time) Bullet List (●, ●, ●) CTRL + SHIFT + L (2 Times) Numbered List (1, 2, 3) CTRL + SHIFT + L (3 Times) Lettered List (a, b, c) CTRL + SHIFT + L (4 Times) Lettered List (A, B, C) CTRL + SHIFT + L (5 Times) Roman Numeral List (i, ii, iii) CTRL + SHIFT + L (6 Times) Roman Numeral List (I, II, III)   CTRL + N New Note CTRL + D Delete Note   CTRL + A Select All CTRL + X Cut CTRL + C Copy CTRL + V Paste CTRL + Z Undo CTRL + Y Redo   CTRL + = Subscript CTRL + SHIFT + = Superscript CTRL + 1 Single line space CTRL + 2 Double line space CTRL + 5 1.5 line space

How to set environment variables using command line?

For example, if the JDK is installed at C:\Program Files\Java\jdk1.8.0 , then you need to set: JAVA_HOM E = C:\Program Files\Java\jdk1.8.0 PATH = PATH + C:\Program Files\Java\jdk1.8.0\bin Setting these environment variables on Windows is not difficult. Just go to  Control Panel > System > Advanced system settings > Advanced > Environment Variables. You can see the whole steps to setup this stuff in the following article:  In command prompt hit following command: setx -m JAVA_HOME "C:\Program Files\Java\jdk1.8.0" setx -m PATH "%PATH%;%JAVA_HOME%\bin";

Highlight changes related to repository in Eclipse.

Image
Goto Menu -> Windows -> Preferences Above window will get opened, then follow below steps:- Step 1: Goto General Step 2: Editors Step 3: Text Editors Step 4: Quick Diff Step 5: Enable Quick Diff Step 6: Show Differences in Overview ruler Step 7: Select - Latest CVS Revision Step 8: Click Apply Step 9: Click OK Now you can see difference in editors, if not seen then restart eclipse once.

Best site to test Regular Expression.

Click here for   Best site to test Regular Expression.

JavaScript Regex Cheatsheet

Regular Expression Basics . Any character except newline a The character a ab The string ab a|b a or b a* 0 or more a's \ Escapes a special character Regular Expression Quantifiers * 0 or more + 1 or more ? 0 or 1 {2} Exactly 2 {2, 5} Between 2 and 5 {2,} 2 or more Default is greedy. Append ? for reluctant. Regular Expression Groups (...) Capturing group (?:...) Non-capturing group \Y Match the Y'th captured group Regular Expression Character Classes [ab-d] One character of: a, b, c, d [^ab-d] One character except: a, b, c, d [\b] Backspace character \d One digit \D One non-digit \s One whitespace \S One non-whitespace \w One word character \W One non-word character Regular Expression Assertions ^ Start of string $ End of string \b Word boundary \B Non-word boundary (?=...) Positive lookahead (?!...) Negative lookahead Regular Expression Flags g Global Match i Ignore case m ^ and $ match start and end of line Regular Expres...

How to track field value changes on form using JQuery?

Below code can track all input fields on form like text, password, check box, select option etc. $('form :input').change(function(){ console.log("Field changed."); });

Eclipse Initializing Java Tooling Error

Image
Following below steps can solve this issue, Step 1: Goto Menu File -> Export It will open a Window, Step 2: Select General -> Preferences Step 3: Click Next Step 4: Now check EXPORT ALL option and Select path where u want to store the preferences and click FINISH . Step 5: Exit Eclipse Step 6: Create a new workspace and then open Eclipse with this new workspace. Step 7: Now again Goto Menu -> File -> Import Step 8: Now select file exported in Step 4 Step 9: Now your Workspace is ready with your preferences, you just need to import your projects in this workspace and Now you will never face this issue of Initializing Java Tooling .