Recently I got the opportunity to use DatePicker of antd library https://ant.design/components/date-picker/ for a react.js project. It was really cool to use that until I found it was using the whole antd library to import this single component. It wasn’t right and there was a solution introduced by the team. I just blogged it for anyone who will find it interesting. Read more “How to load antd components without loading the whole library”
In this post, I would like to share a modular architecture for APIs created with express.js. The modular approach which discussed here is having a module which can perform each and every task relevant to the API. It has following features. Read more “A Modular Approach to create APIs using Express.js and Node.js”
There are some instances where you need to avoid multiple taps on a button so that it will not generate the same action chain immediately with a consecutive click. An example would be an application with a touchscreen. If you click a button rapidly, that event would be generated more than once. As a solution, most of the time devs would block the UI until the action chain is completed. But this would be a bad experience if the user is blocked for any other interactions. A typical example can be a fetch call to update the state and if the invocation is asynchronous it could be causing more inconvenience.
This guide will take you through on how to create a web app with node.js + express.js and in a babel environment. Often we need to use babel to increase readability of our code. And nodemon was used to watch and re-build the project and serve it consistently. Read more “babel + express.js + node.js + nodemon to build a node.js API with hot reloading”
I wanted to test the neo4j database access using a data source defined in Wildfly server. I used Wildfly 10.1.0 release. I wanted to use the driver with bolt protocol to observe the performance when using it. Read more “How to create a neo4j BoltDriver Datasource and connect it with a web app”
Recently I happened to create a middle panel where different types of components could be rendered on top it. So the idea is, the panel should be a <div> wrapper around the middle content. For this kind of situation, higher order functions with components could come in handy to use. Read more “Higher order component wrappers using React.js and reusable components.”
This guide will simply cover to embed SASS support in React.js project.
First, install node-sass and sass-loader npm packages.
Yarn: yarn add sass-loader --dev yarn add node-sass NPM: npm install node-sass npm install sass-loader --save-dev
Recently when I was using spark-shell I couldn’t use JBLAS library which has DoubleMatrix classes. After a quick go through I could use it using –package option.
Run spark-shell using following command
./spark-shell --packages org.jblas:jblas:1.2.4-SNAPSHOT --driver-memory 4G
If the package lookup can’t find it in the local maven repositories try build JBLAS once and the library will be available
git clone https://github.com/mikiobraun/jblas.git cd jblas mvn install