Posts

Showing posts from April, 2018

Get your hands dirty on Javascript :Simple Task

Image
Q -- Simple On click of table cell change the value and revert back after 2 seconds. Level-Beginner  |   Language-Javascript =======Think and try it yourself first ======= So finally you came in solution section . Let's see what we are doing 1.Checking Table is not null 2.we are using two for loop to pass through every element. 3.Now we are triggering onClick event 4.then we use this keyword to access the innerHTML value 5.Then we are using setTimeout function

Concourse Installing and Setup [MAC and Windows]

Image
#  Councourse Setup --> Official Docs -  https://concourse-ci.org/ https:// your_concourse_url curl -Lo concourse https://github.com/concourse/concourse/releases/download/v3.10.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin curl -Lo fly https://github.com/concourse/concourse/releases/download/v3.10.0/fly_darwin_amd64 && chmod +x fly && mv fly /usr/local/bin/ brew install postgres concourse --version fly --version Windows Windows If your local computer runs Windows, hit the  Windows key  on your keyboard, type  powershell , and hit  ENTER . In the window that appears, make a  bin  folder by typing: mkdir bin Next, move the  fly.exe  file from your  Downloads  folder to the new  bin  folder by typing: mv Downloads/fly.exe bin Check whether you have a PowerShell profile already available: Test-Path $profile If the respon...

Git Pull vs Git Pull Rebase

Image
Suppose originally there were 3 commits,  A , B , C : Then developer D created commit  D , and developer E created commit  E : Obviously, this conflict should be resolved somehow. For this, there are 2 ways: MERGE : Both commits  D  and  E  are still here, but we create merge commit  M  that inherits changes from both  D  and  E . However, this creates  diamond  shape, which many people find very confusing. REBASE : We create commit  R , which actual file content is identical to that of merge commit  M  above. But, we get rid of commit  E , like it never existed (denoted by dots - vanishing line). Because of this obliteration,  E  should be local to developer Ed and should have never been pushed to any other repository. Advantage of rebase is that  diamond  shape is avoided, and history stays nice straight line - most developers love that!