Sunday, April 29, 2018

cloning github wiki repository to the other

  1. solving error "remote repository already exists"
  2. following are the ways: 
  3. git remote rm origin // to remove the existing repository
     
  4. git remote add origin https://github.com/username/abc.wiki.git

     
  5. git add . //for staging files
     
  6. 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
  7. git push origin master
    fatal: HttpRequestException encountered.
       An error occurred while sending the request.
     
  8. Username for 'https://github.com': 
  9. 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 
https://stackoverflow.com/questions/10904339/github-fatal-remote-origin-already-exists

Monday, April 23, 2018

Project Management

  1. https://www.atlassian.com/software/jira?_mid=0feb0441a976079b827b9d9027d73822 
  2. https://www.timecamp.com/blog/index.php/2015/09/top-6-benefits-using-time-tracking-jira-2/
  3.  https://drive.google.com/open?id=1t0DT1YgfKflw1HaGmhsY0Xyi2B3-bgxb
  4.  https://www.zoho.com/projects/
  5.  free tools
    1. google hangout for live video sessions
    2. whatsapp group for the team

  6. https://www.backblaze.com/
  7. https://www.zoho.com/mail/
  8. https://www.invisionapp.com/
  9. https://mlab.com/

  10. 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
    ===================================

JPA Latest

JPA derived identifier

Wednesday, April 18, 2018

security

IDE speed up

aws codecommit

aws deployment from codecommit to elasticbeanstalk environment

recaptcha v2

git add-all-files-to-a-commit-except-a-single-file

Friday, April 13, 2018

spring data jpa reference

Table 4. Supported keywords inside method names
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)

recording screencast

loading four most recent pictures


  1. <!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>

spring recaptcha integration

Monday, April 9, 2018

Saturday, April 7, 2018

Spring and Mongodb and Java

object references an unsaved transient instance

  1. https://stackoverflow.com/questions/2302802/object-references-an-unsaved-transient-instance-save-the-transient-instance-be
  2. 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.

thymeleaf with servlet

spring boot ajax example

spring boot json thymeleaf fragment example

JPA doubts

  1. 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

spring boot thymeleaf example

Monday, April 2, 2018

aws useful resources

  1. route 53 
  2. IAM role
  3. s3
  4. elastic beanstalk
  5. sns
  6. cloudwatch
  7. rds
  8. ec 2


aws sms through sns

aws elastic beanstalk application deletion

  1. when the aws elastic bean application is deleted rds instance is automatically deleted
  2. ec2 instance is also deleted
  3. s2 bucket content should be deleted because it is not deleted automatically