[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Update Multiple Properties of Vertex – Gremlin Query – Titan

Update Multiple Properties of Vertex – Gremlin Query – Titan v = g.V().hasLabel('TEST_LABEL').has('property1','value1').next(); ElementHelper.attachProperties(v, 'property2','value2'); Related Links:

Read more
Alternative text

Linked List in C- Reversing a Linked List using Recursion

DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Try DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Linked List in C- Reversing a Linked List using Recursion : Input: Linked List: one->two->three->four head pointer points to first node “one” Output:  Linked List: four->three->two->one head pointer points to first node “four” Source Code : #include<stdio.h>… Read More »

Read more
Alternative text

Elasticsearch – Use Script Filter/Conditon in Aggregation/Sub-Aggreagtion

Example 1 – REST: GET /INDEX/TYPE/_search { "size": 0, "aggs": { "FILTER_NAME": { "filter": { "script": { "script": "doc['field1'].value < doc['field2'].value" } } } } } Example 1 – Java API: SearchRequestBuilder searchRequestBuilder = esClient .prepareSearch("INDEX) .setTypes("TYPE") .setSize(0) .addAggregation( AggregationBuilders.filter("FILTER_NAME").filter(FilterBuilders.scriptFilter("doc['filed1'].value > doc['field2'].value"))); SearchResponse searchResponse = searchRequestBuilder.execute().actionGet(); Map<String, Aggregation> aggMap = searchResponse.getAggregations().asMap(); InternalFilter filter = (InternalFilter)… Read More »

Read more
Alternative text

“Error Establishing a Database Connection” in WordPress After Changing WordPress Address and Site Address

            I installed WordPress in a VPS. In the General settings of the Dashboard, the WordPress Address and Site Address text box had the IP address of the server instead of the domain name. So I manually changed the IP address to the domain name after which I got an… Read More »

Read more
Alternative text

GPU Acceleration for Java – Coming Soon

       Graphical Processing Units(GPU) have become more advanced and more productive in vast areas of computer science and technology. GPUs are used for making animation, rendering, CAD, visual effects, graphics, analytics and many more. Before a couple of years GPUs were only meant for delivering richness in visual content. Now a days GPUs… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]