Tuesday, 25 February 2020

Make life easier — Git automation with single command file

Make life easier — Git automation with single command file

Posted on medium

#makelifeeasier series - Automation of git related activity.. If you like it do not forget to like the post :-)    

If you are spending lot of time with git commands for creating project repositories, creating feature branches, make changes and commit, syncing remote feature branch, creating pull request to merge request with master, then I have good news for you.


https://link.medium.com/KfIHkrT2n4

Wednesday, 25 September 2019

AWS region selection help URL

Hi,

I found one URL which is very helpful choosing the region while creating any new service. If you are not sure try it -

Navigate to the below link
https://www.cloudping.info/

Click on HTTP Ping




You should see the latency details and based on that you can choose the region -


Wednesday, 18 September 2019

Issue 01- No valid crumb was included in the request while configuring git with Jenkins

Hi,

Received Error -
No valid crumb was included in the request while setting git url from github in Jenkins Job configuration


Solution -

Enable the below checkbox and the error will be gone.

Tuesday, 10 September 2019

Angular getting started - part 1




Angular Getting Started
                                                                   
Prerequisites – Knowledge of Typescript, Basic HTML and CSS

Installation in windows
  Prerequisites:  Node.js and NPM
Make sure you have node and npm installed. Below commands should return response
·         node -v
·         npm -v

Command to install angular

                npm install -g @angular/cli

Note: if you under corporate proxy you might have to configure proxy to npm work properly

Verify successful installation and check version

                ng –version

To create project

                ng new <project_name>
                example: ng create my-first-angular-project       
               

To launch Angular application

ng serve
                To launch to different port than default
                ng serve –port 8080

Note: First time ng serve gave me error like ' The serve command requires to be run in an Angular project, but a project definition could not be found'

Solution: I was not inside the project folder so move inside the project folder and run the command again and It works. (Funny 😊).



Webpack –

                                Angular uses webpack build automation tool. The technique is also known as - HMR - HOT Module replacement / Hot module reloading. It means you do not need to restart the application for any changes in the component.



Create a component using angular cli

ng g c <componentName>
ng g c courses

To Create component inside of another component

ng g c Courses/course-details --skipTests
Note- skipTests can be used if you don’t want to generate test file for the component


Create a service using angular cli

ng g s [serviceName]


continued….

GIT Command reference

Below is list of git commands for quick reference

Initialize git with new Folder

git init [ProjectFolder] 
example - git init sample-git-demo

Initialize git with existing Folder
Navigate to existing folder and execute git init

Display modified files in the working directory vs Git's staging area.
git status

Add new or newly modified filename to Git's staging area
git add [filename]
To add recursively all new and newly modified files.
git add .

Commits all files in Git's staging area
git commit -m "First Commit to git"

Below command to directly commit newly modified already committed files
git commit -am "Second Commit to git"

Reset File from Git's staging area
git reset HEAD [filename]

Checkout last committed version from Git
git checkout -- [filename]

Display Git log history
git log

Creating a remote repository reference
git remote add origin [full URL for the remote repository]

List Git's Remote repos
git remote -v

Send Changes to Remote - The -u parameter is needed the first time
git push -u [RemoteName] [BranchName]
git push [RemoteName] [BranchName]

Receive Changes from Remote

git push [RemoteName] [BranchName]

About WebRTC

I was/am highly impressed by WebRTC so started exploring different things related to it.

To start with the basic definition of WebRTC -
WebRTC (Real Time Communication) is a free, open project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. It has inbuilt security and encryption functionality which is making it more valuable.

Use cases are -
  • Video Chat
  • Screen Sharing
  • File Sharing

Emerging Use Cases are
  • IOT
  • Healthcare
  • Real time Team Collaboration

There are some brilliant sites available, describing the capabilities and usage of WebRTC and for understanding the basic -

One stunning demonstration is in the link below. Open it in Chrome.

Thursday, 6 June 2019

Some live saving facts about day to day activity in documentum environment

Below are some facts which I personally think very useful. Hope you guys finds the same.


Fact -1 


You want to change the content of a document to test something very quickly. Many times for some unknown reason UCF error is one of the hurdle in your way, so in such scenario using below API you can do it very easily-


retrieve,c,dm_sysobject where object_name='test.xml'
checkout,c,l
setfile,c,l,'[TempLocation]\test.xml',xml
set,c,l,log_entry
Testing the xml content
checkin,c,l





Fact - 2




Quick way of Cleaning up dmi_queue_item table - garbage entries of full text users.


dmi_queue_item is one of the table which is responsible for performance of your system functionalities like workflows.
Many time, I noticed we have entries of full text index users which does not make sense, may be because of upgrade or failed index requests or removal of index agents.

To clean up, you can follow the below steps -
1. Shutdown your repository services.2. take back up of the table by using below command -




exp USERID=<schema_user>@<schema_name> FILE=<schema_user>_dmi_queue_item_s.DMP LOG=<schema_user>_dmi_queue_item_s.LOG full=n TABLES=dmi_queue_item_s consistent=y compress=y statistics=none BUFFER=2000000 RECORDLENGTH=64000

3. Execute below queries
SQL:
CREATE TABLE dmi_queue_item_s_backup AS (SELECT * FROM dmi_queue_item_s where name !='dm_fulltext_index_user');
truncate TABLE dmi_queue_item_s;
insert into dmi_queue_item_s select * from dmi_queue_item_s_bkp;
drop table dmi_queue_item_s_backup;

PURGE recyclebin;

You can manage user events according to your need.

4. Restart your repository services.


FACT - 3

For version mismatch error during workflow activities -
I found setting up below parameters resolved most of the issues

retrieve,c,dm_docbase_config 
dump,c,l
append,c,l,r_module_name
WF_SKIP_PARALLEL_TASK_EXECUTION
append,c,l,r_module_mode
1
save,c,l
retrieve,c,dm_docbase_config 
dump,c,l



To be continued ...

Make life easier — Git automation with single command file

Make life easier — Git automation with single command file Posted on medium #makelifeeasier series - Automation of git related activity...