6/13/2018

Awesome ES6 Features I love and you should not miss

It’s all those tiny little details that makes you happy while writing javaScript code after ES6 came for a rescue. Following list contains the features from ES6 that I use mostly and has made my life easier when writing my JavaScript code. Template Literals Arrow functions Spread operators Classes Modules Default params Promises Object.entries() Object[key]

5/27/2018

Neo4j : Update initial password via command line

When you are setting up your Neo4j server and you can’t have access to Neo4j Browser, mostly if you are using AWS EC2 or some remote system and don’t want to expose those 7474 7687 ports, To set your initial password via command line do the following delete dbms/auth file from your neo4j data directory sudo […]

Javascript reduce function on array of objects
5/18/2018

Javascript reduce function on array of objects

Array.reduce() function in javascript is one of the most interesting functions, but it may be tricky if you haven’t worked with it on an array of objects.

4/1/2018

Visual Studio Code: Customize find/search match highlight color

 To customize the highlight color of the find matches in visual studio code go to: File > Preferences > Settings > User Settings and add following to workbench.colorCustomizations and choose the colors. “workbench.colorCustomizations”: { “editor.findMatchBackground”:”#6f7700″, “editor.findMatchHighlightBackground”:”#833d03″ }

AWS CloudWatch log Lambda console logs
8/16/2017

AWS CloudWatch log Lambda console logs

Hi there, I was trying out AWS for couple of days and wrapping my head around Lambda and CloudWatch. I was not able to see the logs from my Lambda function in Cloudwatch. I looked for the solutions online and in AWS docs but could not find anything helpful but later discovered that I forgot […]

Drupal commerce add image to Cart or Wishlist
1/23/2017

Drupal commerce add image to Cart or Wishlist

You can add image to the cart’s item listing as well as wishlist listing. To do that you will need to edit the the view and add a new relation and then add the product image field. You may want to rearrange the field as you want.

© 2023 Anil Maharjan