GIT: Reset

Undoes all commits after <commit>, preserving changes locally: git reset [commit] Discards all history and changes back to the specified commit: git reset –hard [commit]  

GIT: Stashing

Sometimes we need to work on multiple tasks and switch branches as per need. In such cases, many times we need to switch to another branch while working on current branch with incomplete code. Here, stashing concept helps a lot. Lets discuss stashing helpful commands: If you have incomplete and non-committed code, then you can… Read More »

GIT: Change the local/pushed commit messages

Rewrite the most recent commit message: If the commit exists in your local repository only and has not been pushed yet to remote repository, you can amend the commit message with the command: git commit –amend -m “New commit message” NOTE: Make sure you don’t have any working copy changes staged before doing this otherwise… Read More »

Regular Expression: Validate email




Kafka: Set Up Apache Kafka On Windows

Kafka is a distributed streaming platform. What is Kafka good for? Building real-time streaming data pipelines that reliably get data between systems or applications Building real-time streaming applications that transform or react to the streams of data More information on how Kafka works, you can visit its official website: Lets see a step-by-step guide… Read More »

Javascript: User interaction – alert, prompt and confirm

Javascript provides some basic UI methods which are very useful in basics UI operations: alert prompt confirm ALERT: Syntax: alert(message) This method accepts one argument. It outputs a window with the message and stops execution until visitor presses “OK” button. PROMPT: This method accepts two arguments. Syntax: var result = prompt(text[, default]); It outputs a… Read More »