9/20/2019

Gatsby with WordPress

Static site generation Why? When? How? Dynamic sites are slower, expensive, complex, hackable. When? If the site is mostly content and no heavy communication with server to update / calculate content in realtime. Best use case, Portfolio website, company website, blogs, etc. Static site generation with Gatsby Gatsby is powerful tool to create static sites […]

Hypervisor not working/running on Windows
6/28/2018

Hypervisor not working/running on Windows

If your virtual machines stopped working on windows, example docker or any other emulators that uses virtualization, in my case it was due to Intel HAXM that was installed by the Android SDK which conflicted with Hyper V which also user Hypervisor and only either one of these two can exist at once. Even after uninstalling […]

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″ }

© 2024 Anil Maharjan