Wednesday, 14 August 2013

IntelliJ - fix Maven dependency

Steps to go through fixing Maven dependency in IntelliJ -


  1. Check the POM - see if the dependency is defined properly
  2. Go to File --> Project Structure... and see if which Library is throwing up error
  3. Navigation to the Class file that the Library is pointing to, e.g. (in your Maven dir)
    [user_dir]/.m2/repository/[dependency]/[dependency_version]/... 
  4. Delete the Library with error in Project Structure.
  5. In command prompt, navigate to the directory of the project/Intellij module, run
    mvn install 
    to force download the dependencies
  6. In IntelliJ, top left hand corner, go to "Packages" view
  7. Right-click on the module --> Maven --> Reimport
  8. Go to File --> Project Structure... to see if error persist


Thursday, 8 August 2013

HTML5 Contenteditable Attribute - Front End editing

http://www.hongkiat.com/blog/html5-editable-content/

Try edit something here!


Note: Changes are saved to Local Storage in your browser.
For WebKit browsers, Chrome and Safari, it is stored under the ‘Resources’ tab.
For Firefox users, go to the DOM panel and search for "localStorage".

Kendo UI - WYSIWYG plugin

http://www.kendoui.com/ - leveraging HTML5 contenteditable attribute for editing content in context, this plugin adds the standard WYSIWYG functionality to it.

This example is based on this.


Try edit here!





Note: Changes are saved to Local Storage in your browser.
For WebKit browsers, Chrome and Safari, it is stored under the ‘Resources’ tab.
For Firefox users, go to the DOM panel and search for "localStorage".


Tuesday, 6 August 2013

JavaScript Regular expressions made easy

VerbalExpressions is a JavaScript library that helps to construct difficult regular expressions. 

https://github.com/jehna/VerbalExpressions

Animated line drawing in SVG

http://jakearchibald.com/2013/animated-line-drawing-svg/