- 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
Wednesday, December 26, 2018
method comment in eclipse
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.
Friday, July 6, 2018
Sunday, June 24, 2018
rest api
- For simplicity, our example application only sends JSON back and forth, but the application should be architectured in such a way that you can easily change the format of the data, to tailor for different clients or user preferences.
Saturday, June 23, 2018
mockito
- https://medium.com/@gustavo.ponce.ch/spring-boot-restful-junit-mockito-hamcrest-eclemma-5add7f725d4e
- can we use same mock in two different test methods? what would be its implications ie. pros and cons?
- what layer is best suitable for being tested through mockito? controller or service? or both?
- https://dzone.com/articles/spring-boot-unit-testing-and-mocking-with-mockito
- @Mock vs @InjectMocks?
error-selection-does-not-contain-a-main-type
- https://stackoverflow.com/questions/31250359/git-repository-how-to-recover-deleted-files
- check the folder structure
- do you have src/main/java structure and inside it do you have Main class?
github cloning a repository from a specific commit
- clone a repository as usual ie
- git clone repository url
- user name and password if it is private
- git reset --hard a0f64dcd987669aa15d59a39a51f583b3cqd05k2
- in the above command the value after hard flag is the SHA of commit at that particular instant of repository
- import as maven project in sts
github recovering a deleted file from previous commit
- click on total number of commits
- here you can view all the commits
- now go to a commit where a file existed and click on < > symbol and if you find the file just download it
Friday, June 8, 2018
redirecting request on port 80 to 8080 on ubuntu
sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080
the above command will redirect the requests coming on port 80 to port 8080
Thursday, June 7, 2018
spring boot file upload to amazon s3 on ubuntu
- https://medium.com/oril/uploading-files-to-aws-s3-bucket-using-spring-boot-483fcb6f8646
- first sign up or login to your amazon account and create bucket in s3. then create a user and give permission ie programmatic access
- @Configuration
public class S3Config {
@Value("${userid.aws.access_key_id}")
private String awsId;
@Value("${userid.aws.secret_access_key}")
private String awsKey;
@Value("${userid.s3.region}")
private String region;
@Bean
public AmazonS3 xyz(){
System.out.println("Inside s3Client of S3Config ");
BasicAWSCredentials awsCreds = new BasicAWSCredentials(awsId, awsKey);
AmazonS3 s3Client = AmazonS3ClientBuilder.standard()
.withRegion(Regions.fromName(region))
.withCredentials(new AWSStaticCredentialsProvider(awsCreds))
.build();
return s3Client;
}
} - @Controller
public class AController {
@Autowired
private S3Service s3service;
@PostMapping("/uploadFile")
public String uploadFile(@RequestPart(value = "xyz") MultipartFile multipartFile,Model map,HttpServletRequest request) {
System.out.println("Inside upload file of bucket controller ");
try
{
String filePath = request.getServletContext().getRealPath("/");
System.out.println("filePath is "+filePath);
File f1=new File(filePath+"/"+multipartFile.getOriginalFilename());
multipartFile.transferTo(f1);
System.out.println("f1 is "+f1);
String fileName=f1.getName();
String fileUrl=s3service.uploadFile(fileName, f1);
/**
* we should be sure that the file has indeed been uploaded
*/
map.addAttribute("fileUrl", fileUrl);
f1.delete();
/* for rest request
return fileUrl;
*/
return "uploadSuccess";
}
catch(IOException e)
{
e.printStackTrace();
return e.toString();
}
} - @Service
public class S3ServicesImpl implements S3Service {
private Logger logger = LoggerFactory.getLogger(S3ServicesImpl.class);
/* (non-Javadoc)
* @see com.epilen.androidPatient.service.aws.s3.S3Service#downloadFile(java.lang.String)
*/
@Autowired
private AmazonS3 s3client;
@Value("${userid.s3.bucket}")
private String bucketName;
@Value("${s3.endpointUrl}")
private String endpointUrl;
/**
* convert multipart to file
* @param file
* @return
* @throws IOException
*/
@Override
public void downloadFile(String keyName) {
try {
System.out.println("Downloading an object");
S3Object s3object = s3client.getObject(new GetObjectRequest(bucketName, keyName));
System.out.println("Content-Type: " + s3object.getObjectMetadata().getContentType());
Utility.displayText(s3object.getObjectContent());
logger.info("===================== Import File - Done! =====================");
} catch (AmazonServiceException ase) {
logger.info("Caught an AmazonServiceException from GET requests, rejected reasons:");
logger.info("Error Message: " + ase.getMessage());
logger.info("HTTP Status Code: " + ase.getStatusCode());
logger.info("AWS Error Code: " + ase.getErrorCode());
logger.info("Error Type: " + ase.getErrorType());
logger.info("Request ID: " + ase.getRequestId());
} catch (AmazonClientException ace) {
logger.info("Caught an AmazonClientException: ");
logger.info("Error Message: " + ace.getMessage());
} catch (IOException ioe) {
logger.info("IOE Error Message: " + ioe.getMessage());
}
}
/**
* this method will return the fileurl
*/
@Override
public String uploadFile(String fileName, File file) {
System.out.println("Inside upload file of S3ServiceImpl");
try {
s3client.putObject(new PutObjectRequest(bucketName, fileName, file));
logger.info("===================== Upload File - Done! =====================");
String fileUrl = endpointUrl + "/" + bucketName + "/" + fileName;
return fileUrl;
} catch (AmazonServiceException ase) {
logger.info("Caught an AmazonServiceException from PUT requests, rejected reasons:");
logger.info("Error Message: " + ase.getMessage());
logger.info("HTTP Status Code: " + ase.getStatusCode());
logger.info("AWS Error Code: " + ase.getErrorCode());
logger.info("Error Type: " + ase.getErrorType());
logger.info("Request ID: " + ase.getRequestId());
return ase.toString();
} catch (AmazonClientException ace) {
logger.info("Caught an AmazonClientException: ");
logger.info("Error Message: " + ace.getMessage());
return ace.toString();
}
}
} - public interface S3Service {
public String uploadFile(String fileName, File file);
}
pom.xml entry->.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-bom</artifactId>
<version>1.11.327</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
</dependency>
the above reduces the jar size from 90 mb to 35 mb and downloads only s3 dependencies- application.properties entries userid.aws.access_key_id= userid.aws.secret_access_key= userid.s3.bucket=
userid.s3.region=
s3.endpointUrl=
Thursday, May 31, 2018
adding created by comment automatically at class creation time in eclipse
- right click on the project
- Choose Java Code Style in left
- Check enable Project specific settings
- expand comments
- choose files
- edits
- type "created by" or
- choose insert variables
Friday, May 25, 2018
Monday, May 7, 2018
best coding standard
- clean coders by uncle bob martin
- tdd by example
- polyglot programming
Sunday, May 6, 2018
Saturday, May 5, 2018
java interview questions
- jmeter
- jprofiler
- garbage collection
- dealing with outofmemory exception
Friday, May 4, 2018
hiring
- take enough time in hiring the right people but when once you have hired them, give them full power n flexibility .
angular 4 spring boot integration issues
- routing
- cache issue
- guard issue
- whitelabel issue
- can not read property of controls
mongodb installation on windows
- windows key
- cmd
- ctrl+shift+enter for administrator prompt
- msiexec.exe /q /i mongodb-win32-x86_64-2008plus-ssl-3.6.4-signed.msi INSTALLLOCATION="(drive or install location):\MongoDB\Server\3.6.4\" ADDLOCAL="all"
- the above also installs compass
- add the bin folder location to the path variable
- create \data\db data directory in the drive from which you want to start mongodb
- goto the drive where you have installed mongodb and run the mongodb server as follows:
- mongod
- this server window will be open and wait to listen for the client connection
- now run the mongodb client as mongo on the same drive
- cls clears the screen
- ->
- reference:
- https://docs.mongodb.com/manual/mongo/
- https://docs.mongodb.com/manual/introduction/
- https://docs.mongodb.com/tutorials/install-mongodb-on-windows/
- https://www.mkyong.com/mongodb/how-to-install-mongodb-on-windows/
- its set up failed after it took about around 1 hour.
- useful:
angular 4 integration with spring boot
- four build files of angular are placed into static folder of Spring boot project
Thursday, May 3, 2018
angular 4 hello
- install node,js from https://nodejs.org/en/
- follow https://angular.io/guide/quickstart
Wednesday, May 2, 2018
Tuesday, May 1, 2018
Sunday, April 29, 2018
cloning github wiki repository to the other
- solving error "remote repository already exists"
- following are the ways:
- git remote rm origin // to remove the existing repository
- git remote add origin https://github.com/username/abc.wiki.git
- git add . //for staging files
- git commit -m "first doc commit"
[master 55a63a5] first doc commit
10 files changed, 1428 insertions(+), 1 deletion(-)
create mode 100644 A.md
create mode 100644 R.md
create mode 100644 D.md
create mode 100644 G.md
create mode 100644 N.md
create mode 100644 P.md
create mode 100644 Rn.md
create mode 100644 S.md
create mode 100644 n.md - git push origin master
fatal: HttpRequestException encountered.
An error occurred while sending the request.
- Username for 'https://github.com':
- Password for
Counting objects: 12, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (12/12), 7.35 KiB | 0 bytes/s, done.
Total 12 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), done
Thursday, April 26, 2018
Wednesday, April 25, 2018
Tuesday, April 24, 2018
Monday, April 23, 2018
Project Management
- https://www.atlassian.com/software/jira?_mid=0feb0441a976079b827b9d9027d73822
- https://www.timecamp.com/blog/index.php/2015/09/top-6-benefits-using-time-tracking-jira-2/
- https://drive.google.com/open?id=1t0DT1YgfKflw1HaGmhsY0Xyi2B3-bgxb
- https://www.zoho.com/projects/
- free tools
- google hangout for live video sessions
- whatsapp group for the team
- https://www.backblaze.com/
- https://www.zoho.com/mail/
- https://www.invisionapp.com/
- https://mlab.com/
- Bitbucket
JIRA
Bamboo
Confluence
AWS
=============================================
technology architecture
Microservices
==============================================
technology stack
Spring boot
Angular js
Mongdb
Express js
Nodejs
===============================================
Android
================================================
UML
documentation
================================================
Testing
unit testing
automation testing
performance testing
security testing
=================================================
Clean coding
=================================================
scrum
=================================================
Design Patterns
=================================================
task management
people management
project management
revenue management
change management
skill management
document management
code management
==================================================
google docs
whatsapp group
===================================================
UML
{
use cases
}
Testing
{
unit testing
}
CI/CD
AWS
Maven
Angular4
Mongodb
Spring boot
==========
MSg91
IBM Watson
===========
* Github
* JIRA
* CI/CD
* travis
* jenkins
* AWS
==========
QA
* testing
* unit testing
* automation testing
* performance testing
* security testing
* code review
*
* DevOps
*
* ===========
Domain Expert
* UML
* OOAD
* Design Patterns
* documentation
=====================
* AI
* python
* machine learning
* Tensor flow
======================
* AWS technologies
=======================
* Mobile User Experience
* Web User Experience
* =======================
* Security Expert
* =======================
* IBM Watson Application
==========================
* SMS gateway application
* interaction through SMS
* login through SMS
* auto response through SMS
===============================
Revenues
=================================
Risk Management
===================================
People Management
===================================
Task Management
===================================
Sunday, April 22, 2018
JPA best practices
- https://stackoverflow.com/questions/2585641/hibernate-jpa-db-schema-generation-best-practices
- do not let hibernate create the schema
- https://stackoverflow.com/questions/8815037/how-to-create-database-schema-in-hibernate-first-time-and-further-update-it-in-c
- https://www.thoughts-on-java.org/hibernate-tips-create-initialize-database/
- https://shekhargulati.com/2018/01/09/programmatically-generating-database-schema-with-hibernate-5/
- http://what-when-how.com/enterprise-javabeans-3/domain-modeling-and-the-jpa-ejb-3/
Thursday, April 19, 2018
jpa errors
- https://stackoverflow.com/questions/39734796/jpa-concurrency-issue-on-release-of-batch-it-still-contained-jdbc-statements
- Field 'DTYPE' doesn't have a default value
Wednesday, April 18, 2018
aws deployment from codecommit to elasticbeanstalk environment
recaptcha v2
- https://developers.google.com/recaptcha/docs/faq
- https://sanaulla.info/2017/11/10/using-google-recaptcha-with-spring-boot-application/
- https://stackoverflow.com/questions/30832957/google-recaptcha-not-showing
- https://stackoverflow.com/questions/27286232/how-does-new-google-recaptcha-work
- https://www.quora.com/Why-does-Googles-new-reCaptcha-always-asks-me-to-solve-a-captcha
- https://en.wikipedia.org/wiki/ReCAPTCHA
- https://stackoverflow.com/questions/39853162/recaptcha-with-content-security-policy
- https://trends.builtwith.com/cdn/GStatic-Google-Static-Content
- https://github.com/google/recaptcha/issues/107
Tuesday, April 17, 2018
Monday, April 16, 2018
Sunday, April 15, 2018
dynamic dropdown
- http://rajnikantpanchal.blogspot.in/2013/10/dynamic-fill-dropdown-list-in-spring.html
- https://stackoverflow.com/questions/43848339/dynamic-dropdowns-using-thymeleaf-spring-boot
- https://blog.bubble.is/how-to-build-dynamic-dropdown-elements-3ad6cb72cf5f
Saturday, April 14, 2018
Friday, April 13, 2018
spring data jpa reference
Keyword | Sample | JPQL snippet |
---|---|---|
And |
findByLastnameAndFirstname |
… where x.lastname = ?1 and x.firstname = ?2 |
Or |
findByLastnameOrFirstname |
… where x.lastname = ?1 or x.firstname = ?2 |
Is,Equals |
findByFirstname ,findByFirstnameIs ,findByFirstnameEquals |
… where x.firstname = ?1 |
Between |
findByStartDateBetween |
… where x.startDate between ?1 and ?2 |
LessThan |
findByAgeLessThan |
… where x.age < ?1 |
LessThanEqual |
findByAgeLessThanEqual |
… where x.age <= ?1 |
GreaterThan |
findByAgeGreaterThan |
… where x.age > ?1 |
GreaterThanEqual |
findByAgeGreaterThanEqual |
… where x.age >= ?1 |
After |
findByStartDateAfter |
… where x.startDate > ?1 |
Before |
findByStartDateBefore |
… where x.startDate < ?1 |
IsNull |
findByAgeIsNull |
… where x.age is null |
IsNotNull,NotNull |
findByAge(Is)NotNull |
… where x.age not null |
Like |
findByFirstnameLike |
… where x.firstname like ?1 |
NotLike |
findByFirstnameNotLike |
… where x.firstname not like ?1 |
StartingWith |
findByFirstnameStartingWith |
… where x.firstname like ?1 (parameter bound with appended % ) |
EndingWith |
findByFirstnameEndingWith |
… where x.firstname like ?1 (parameter bound with prepended % ) |
Containing |
findByFirstnameContaining |
… where x.firstname like ?1 (parameter bound wrapped in % ) |
OrderBy |
findByAgeOrderByLastnameDesc |
… where x.age = ?1 order by x.lastname desc |
Not |
findByLastnameNot |
… where x.lastname <> ?1 |
In |
findByAgeIn(Collection<Age> ages) |
… where x.age in ?1 |
NotIn |
findByAgeNotIn(Collection<Age> ages) |
… where x.age not in ?1 |
True |
findByActiveTrue() |
… where x.active = true |
False |
findByActiveFalse() |
… where x.active = false |
IgnoreCase |
findByFirstnameIgnoreCase |
… where UPPER(x.firstame) = UPPER(?1) |
loading four most recent pictures
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery.getJSON demo</title>
<style>
img {
height: 100px;
float: left;
}
</style>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<div id="images"></div>
<script>
(function() {
var flickerAPI = "https://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?";
$.getJSON( flickerAPI, {
tags: "mount rainier",
tagmode: "any",
format: "json"
})
.done(function( data ) {
$.each( data.items, function( i, item ) {
$( "<img>" ).attr( "src", item.media.m ).appendTo( "#images" );
if ( i === 3 ) {
return false;
}
});
});
})();
</script>
</body>
</html>
Thursday, April 12, 2018
Wednesday, April 11, 2018
Tuesday, April 10, 2018
Monday, April 9, 2018
spring mvc autocomplete example
- http://www.codingpedia.org/ama/autocomplete-search-box-with-jquery-and-spring-mvc/
- http://viralpatel.net/blogs/spring-3-mvc-autocomplete-json-tutorial/
- https://www.mkyong.com/spring-mvc/spring-mvc-jquery-autocomplete-example/
- https://stackoverflow.com/questions/46760315/spring-boot-autocomplete-ajax
spring mvc ajax examples
- http://www.raistudies.com/spring/spring-mvc/ajax-spring-mvc-3-annonations-jquery/
- https://www.boraji.com/spring-4-mvc-jquery-ajax-form-submit-example
- https://www.javacodegeeks.com/2013/09/spring-mvc-ajax-jquery.html
- https://crunchify.com/how-to-use-ajax-jquery-in-spring-web-mvc-jsp-example/
- https://vitalflux.com/make-ajax-calls-java-spring-mvc/
- http://www.beingjavaguys.com/2013/07/sending-html-form-data-to-spring.html
- http://www.mkyong.com/spring-mvc/spring-4-mvc-ajax-hello-world-example/
Sunday, April 8, 2018
Saturday, April 7, 2018
object references an unsaved transient instance
- https://stackoverflow.com/questions/2302802/object-references-an-unsaved-transient-instance-save-the-transient-instance-be
- i was getting the error when i was instantiating country which was not linked to database row and using this country as a parameter for fetching states. so i used string country name and got the reference of country in the database and used this country as parameter to fetch the states then it worked.
JPA doubts
- what happens when new entities and attributes are defined in a production database that has thousands of data. what are the implications?
json in spring boot
- https://stackoverflow.com/questions/44839753/returning-json-object-as-response-in-spring-boot?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
- https://stackoverflow.com/questions/40874012/object-to-json-serialization-inside-thymeleaf-template?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
Friday, April 6, 2018
spring mvc error
Neither BindingResult nor plain target object for bean name 'country' available as request attribute
Solution:
instantiate country and add as attribute in model map.
Monday, April 2, 2018
aws useful resources
- route 53
- IAM role
- s3
- elastic beanstalk
- sns
- cloudwatch
- rds
- ec 2
aws elastic beanstalk application deletion
- when the aws elastic bean application is deleted rds instance is automatically deleted
- ec2 instance is also deleted
- s2 bucket content should be deleted because it is not deleted automatically
Sunday, April 1, 2018
Saturday, March 31, 2018
Friday, March 30, 2018
Thursday, March 29, 2018
JPA detached entity passed to persist error
- https://notesonjava.wordpress.com/2008/11/03/managing-the-bidirectional-relationship/
- https://stackoverflow.com/questions/13370221/jpa-hibernate-detached-entity-passed-to-persist
- https://github.com/SomMeri/org.meri.jpa.tutorial/blob/master/src/main/java/org/meri/jpa/relationships/entities/bestpractice/SafePerson.java
- http://meri-stuff.blogspot.in/2012/03/jpa-tutorial.html#RelationshipsBidirectionalOneToManyManyToOneConsistency
Wednesday, March 28, 2018
Tuesday, March 27, 2018
spring boot rest api
- http://websystique.com/spring-boot/spring-boot-rest-api-example/
- https://www.codesandnotes.be/2014/10/31/restful-authentication-using-spring-security-on-spring-boot-and-jquery-as-a-web-client/
- https://stackoverflow.com/questions/38974428/jquery-alerts-undefined-on-error-instead-of-java-spring-exception-details
- https://stackoverflow.com/questions/7952154/spring-resttemplate-how-to-enable-full-debugging-logging-of-requests-responses
Spring boot exception handling
- https://www.toptal.com/java/spring-boot-rest-api-error-handling
- http://www.springboottutorial.com/spring-boot-exception-handling-for-rest-services
- https://dzone.com/articles/global-exception-handling-with-controlleradvice
- https://stackoverflow.com/questions/28902374/spring-boot-rest-service-exception-handling
debugging json
- https://notes.georgboe.com/post/debug-http-400-errors-in-spring-mvc/
- https://stackoverflow.com/questions/7952154/spring-resttemplate-how-to-enable-full-debugging-logging-of-requests-responses
- https://pubs.vmware.com/vfabric51/index.jsp?topic=/com.vmware.vfabric.vas.1.0/vas/api-vfabric-docs.html
- https://stackoverflow.com/questions/38974428/jquery-alerts-undefined-on-error-instead-of-java-spring-exception-details
contribution required
- apache
- JSR
- shopizer
- eclipse
- firefox
- mdn
- tomcat
- spring
- hibernate
- android
Monday, March 26, 2018
debugging in browser
- https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor
- https://stackoverflow.com/questions/39228657/disable-chrome-strict-mime-type-checking
- right click on web page
- choose inspect element
- click on network
- now reload the page or click on submit and check the data
- https://stackoverflow.com/questions/819213/how-to-debug-javascript-error
domain modellig techniques
- https://www.infoq.com/articles/seven-modelling-smells
- https://www.scaledagileframework.com/domain-modeling/
- http://www.mindscapehq.com/documentation/lightspeed/Domain-Modelling-Techniques
- Handle one requirement at a time
- Think about the reports required
Sunday, March 25, 2018
Saturday, March 24, 2018
next
- JPA
- mapping inner class
- mapping inner interface
- save data in database
- apply dynamic fileds functionality in registration
- accept the values into collection
- save the values in database
- validation
- check for duplicacy
- type conversion
- all the form should be populated with values from database. not the present case where values are hardcoded.
- applying sms gateway
- mobile verification through otp
- apply reactjs
- apply redux with reactjs
doubt is out
- accepting multiple values e.g mobile numbers in to a collection
Friday, March 23, 2018
regular expression requirement for the validation
- landline number
- country code
- youtube video url
- adhar id
- pin code
- city
- state
- country
- image URL
- dateofbirth
- bride(min 18 years max 60 years)
- groom(min 21 years max 65 years)
- quaification
- occupation
- address
Thursday, March 22, 2018
spring boot hibernate validator dependency
spring boot starter web dependency already includes hibernate validator dependency.
Subscribe to:
Posts (Atom)