Posts

React JS

Enable Intellisense for React component in VS code Run below command: npm i @types/react --save-dev How to write the scripts in package.json file NPM is package manager used to install delete and update JavaScript packages on your machine. NPX is package executor and it is used to execute JavaScript packages directly without installing it. To build scripts in package.json file use scripts sections, "scripts" : {     "build" : "parcel build index.html" ,     "start" : "parcel index.html"   }

Installing STS 4 on Ubuntu OS

Example 1: Got permission denied while trying to connect to the Docker daemon socket sudo chmod 666 /var/run/docker.sock Example 2: Server: ERROR: Got permission denied while trying to connect to the Docker daemon socket sudo newgroup docker sudo chmod 666 /var/run/docker.sock sudo usermod -aG docker ${ USER } Example 3: dial unix /var/run/docker.sock: connect: permission denied sudo setfacl --modify user: < user name or ID > :rw /var/run/docker.sock Example 4: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: newgrp docker

Angular Tips

  export NODE_OPTIONS =--openssl-legacy-provider

Docker: Volume

Docker commands: docker ps: To show all the running containers in docker docker build <path> -t <image_name>: It creates the image from the Dockerfile in the current folder. docker run -it <image_name or image id>: It start the container     Volume is the storage outside the container. It is used to share the data among different containers at runtime. Docker Volume commands docker volume list docker volume create <volume_name> All the volumes are stored at /var/lib/docker/volumes/_data

Linux commands

 Linux commands To rename the file                    mv <source file> <target file name>

How to connect Ubuntu Linux From Windows 10 using PuTTY & WinSCP

 Title:    Accessing the Linux Machine installed in Virtual Box through WinSCP or Putty, follow below steps In Virtual Box, Open settings configuration Open Network tab Select the "Bridge Adapter" Start the Linux/Ubuntu Machine Install ssh using "Sudo apt install ssh" Check the IP address of your machine using "ifconfig" Copy Inet address  Open WinSCP in your host machine and use the same IP address Use your Linux machine credential to connect to the Linux machine You can connect to putty using the same process. Thank you. Happy coding :) Regards, Kiran.

WebLogic Application Deployment & Shared Library

Image
In an enterprise application deployment scenario, there are many cases where some libraries are used/referenced by multiple applications. It would indeed be a bad design to include such common libraries with every application deployed on the WebLogic server. Not only does it prevent redundancy of resources on the server, it also consumes valuable space & deployment time - especially when the libraries are huge. WebLogic server offers the shared library concept using which EARs, JARs, EJBs and WARs can be shared across applications in a WebLogic domain. Let us now see how to package and deploy a shared library in WebLogic server; Step 1: Create a folder structure as shown below Step 2: Copy all the libraries (in this case JAR files) that you would want to share across applications to the lib folder under WEB_INF Step 3: Create a file under META_INF folder by name "MANIFEST.MF" Step 4: Contents of the MANIFEST.MF file are shown below Manifest-Version: 1....

Oracle ADF Logger in 12c

Image
Configure ADF Logger 12c Oracle ADF 12c has very good error or exception logging mechanism. You have to define logger for your class or package and handler using em. Open logging.xml file stipulated at loc : <Middleware_home>/ Oracle_Home\user_projects\domains\XXX_domain\config\fmwconfig\servers\AdminServer Add logger to this file as below, <logger name=<class name or package name> level='FINEST' useParentHandlers='true'> Note: use full qualified class and package name and set appropriate logger level In EM, go to Log configuration for your application, Create you handler as below, Provide specific logger for you handler as below; Set appropriate logger level as you defined in your logger. Add your logger name that you have created in Logging.xml file. And verify you logs in file or EM.

Creating RCU for ADF Development

Image
Creating RCU for ADF Development Creating the Rcu for ADF development  Once the ADF Development  had  been installed then we can start the RCU  for the database before start configuration of the domain .. The RCU will create the seeded schema which will be used for the different services of the middleware We had used 12c database with the Oracle Linux six for this Practice  Step 1 Navigate to the middle ware home and from the oracle_common and bin and start the rcu Step 2 Click next to proceed to the next page Step 3 There are three options which gives more flexibility for a person to run [1]system load and product load   only run by the user who has the dba privileges [2]Prepare Scripts for System Load -- it will create the script which contains all the schema  we need to provide the script to the person who has the sysdba privileges and execute the script once the system load is done by the dba then the no...

WebLogic 12c server setup

Image
Installing and Configuring ADF development in weblogic 12c  In this practice we will go through the installing the ADF and configuring the Domain for the web logic  Step 1 Start the installer  as the java -jar fmw_infra_121200.jar to install the ADF development it will install the web logic ..or if the web logic is already installed you can extend it Step 2 Provide the Oracle Middle ware Home Location for the Installation Step 3 Select the Installation type if it is the dev instnace select the fusion Middle ware infrastructure with examples Step 4 Once the Prerequisite check's had been completed successfully then proceed to the next step Step5 Check the installation summary and save the response file Step 6 Once all the installation Process had been completed successfully then Proceed to next step Once the summary page click finish to finish the ins...