- 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
Sunday, April 29, 2018
cloning github wiki repository to the other
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
Subscribe to:
Posts (Atom)