Wednesday, February 17, 2021
Saturday, May 23, 2020
Wednesday, December 26, 2018
method comment in eclipse
- Following are the steps to add method comments-
- preferences
- Java
- Code Style
- Code Templates
- method
- Insert variable
- Now to test the above
- just type /** and press enter before a method
Monday, December 24, 2018
Tuesday, September 25, 2018
ubuntu permission
sudo chmod -R 777 /* to give permission to the folder and all its contents recursively
installation of visual studio code for angular
- download .deb 64 bit package for ubuntu from https://code.visualstudio.com/download
- open terminal and goto the location where the file exists
- type the following
- sudo dpkg -i code_1.27.2-1536736588_amd64.deb
- goto search bar
- type visual studio code
- lock it to launcher
Monday, September 24, 2018
Wednesday, August 8, 2018
Tuesday, August 7, 2018
domain driven design
- books “Domain-driven Design” by Eric Evans and “Implementing Domain-driven Design” by Vaughn Vernon
- value object is the object of a class whose constructor is private and which is constructed with the help of factory method inside it. they are not treated as entity. and two value objects having same state are considered to be equal.
- https://deviq.com/value-object
- they are small
- they are immutable
- https://martinfowler.com/bliki/ValueObject.html
- https://enterprisecraftsmanship.com/2016/01/11/entity-vs-value-object-the-ultimate-list-of-differences/
- value objects can be considered as @component
- address is a good example of value object
- value object should not be in a separate table.
- value object should not have own identity
- aggregates
docker
- sudo docker pull netflixoss/eureka generates the following error
- Using default tag: latest
Error response from daemon: manifest for netflixoss/eureka:latest not found
solution is -> - sudo docker pull netflixoss/eureka:1.3.1
- where 1.3.1 is the tag
- following is the way to run i.e create a container:
- sudo docker run netflixoss/eureka:1.3.1
- the problem is unable to connect to the port
- https://stackoverflow.com/questions/47612400/docker-run-unable-to-access-jar-file
- https://bartwullems.blogspot.com/2017/03/docker-error-err
- http://blog.thoward37.me/articles/where-are-docker-images-stored/
- https://stackoverflow.com/questions/25101312/does-all-running-docker-containers-have-a-separate-process-id
- sudo docker container ls -> will all the running containers
- docker --help//help commands
- how to locate Dockerfile of pulled docker image ?
- docker-compose.yml
- If you need to customize an image image, you should create a Dockerfile, with the first line:
FROM ubuntu - Yes, every docker container will have a different PID on your host machine.
You can get a docker containers PID by doing:
If you kill the process on your host, your docker container will die.docker inspect --format '{{ .State.Pid }}' CONTAINER_ID
example
sudo docker inspect --format '{{ .State.Pid }}' 18f966e5228f
maven on ubuntu for spring boot application
- maven creates the executable jar inside target folder through the following command:
- mvn clean package
Sunday, July 8, 2018
Saturday, July 7, 2018
ussd
- USSD (Unstructured Supplementary Service Data) is a Global System for Mobile(GSM) communication technology that is used to send text between a mobile phone and an application program in the network. Applications may include prepaid roaming or mobile chatting.
Subscribe to:
Posts (Atom)