[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Pretty/Style/Indent JSON String in HTML DIV/PRE Tag in Javascript/jQuery

         We come across many situations where we need to display JSON string (pretty/Style/Indent format) inside HTML DIV(<div></div>) tag. The below Javascript code snippet can be used to achieve what you need.  HTML Code <pre id="json"></pre> //DIV tag wont work  Javascript Code var data = { "data": { "attribute1": "value1", "attribute2": "value2",… Read More »

Read more
Alternative text

Writing REST APIs Series – Best Practices

Writing REST APIs – CRUD – Request & Response – Best Practices – Part I Writing REST APIs – CREATE/POST – Best Practices – Part II

Read more
Alternative text

Gremlin Query Language – Create Vertex/Node and Edge/Relationship

Open Gremlin Console Initial command to work/test with inmemory storage graph = TitanFactory.build().set('storage.backend','inmemory').open() g=graph.traversal(standard()) Example 1: Create Vertex. Label property is optional. The below queries will return vertex references. graph.addVertex('property1','value1','property2','value2'); OR graph.addVertex(label,'USER','property1','value1','property2','value2'); OR graph.addVertex(T.label,'USER','property1','value1','property2','value2'); OR graph.addVertex(T.label,'USER').property('property1','value1').property('property2','value2'); OR graph.addVertex('LABEL_NAME'); Example 2: Create Edge with/without properties using system generated unique ID g.V(123).next().addEdge('EDGE_LABEL',g.V(456).next()) OR g.E(g.V(123).next().addEdge('EDGE_LABEL',g.V(456).next())).property('property1','value1').property('property2','value2') Example 3: Create Edge with/without… Read More »

Read more
Alternative text

Apple Mac Pro – Complete Redesign of Workstation Desktop

          We have been using desktops for a very long time with the physical design of it remainning the same. There were some innovations made to desktops by companies like Alienware, Razerzone with LEDs to make it look better and attractive. But the overall shape has remained same for years. Have you ever… Read More »

Read more
Alternative text

MYSQL on Linux(Ubuntu) keeps crashing – Solution is to create Swap Space

          There are many internet users who face this problem where the MYSQL on their server getting crashed frequently. I personally faced this problem in my WordPress blog in my VPS. This problem occurs due to lack of memory(RAM) space. i.e. when your RAM usage hits the maximum. This problem can… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]