Posts

Showing posts from June, 2024

LINE FEED AND CARRIAGE RETURN

Line Feed and Carriage Return Explained Line Feed and Carriage Return Explained We all know what a line feed is \n and what a carriage return character is \r . But most of us do not know why we have these two different characters to represent a new line. What does each of them really mean? To start with, these are an emulation of how line ending is handled in a traditional typewriter (hey, I actually worked on one of these :)). Line Feed is the act of moving the cursor exactly one row down, staying at the current column. In a typewriter, this is rolling the page one row up without moving the platen horizontally. Carriage Return is the act of moving the cursor to the beginning of the line, staying on the current row. In a typewriter, this is moving the platen to the right horizontally without rolling the page. The above operation, when done in succession, will make the typing head point to the beginning of the next line...

LINE FEED AND CARRIAGE RETURN

Line Feed and Carriage Return Explained Line Feed and Carriage Return Explained We all know what a line feed is \n and what a carriage return character is \r . But most of us do not know why we have these two different characters to represent a new line. What does each of them really mean? To start with, these are an emulation of how line ending is handled in a traditional typewriter (hey, I actually worked on one of these :)). Line Feed is the act of moving the cursor exactly one row down, staying at the current column. In a typewriter, this is rolling the page one row up without moving the platen horizontally. Carriage Return is the act of moving the cursor to the beginning of the line, staying on the current row. In a typewriter, this is moving the platen to the right horizontally without rolling the page. The above operation, when done in succession, will make the typing head point to the beginning of the next line...

GIT COMMANDS

Git Revisited Git Revisited git add -u Add all modified files into staging area. git commit -a Automatically adds all tracked files to staging area for committing. git diff --staged Diff the content already added to staging area (using git add command). git remote add <alias> <remote git repo location> Makes a reference to the remote repository with the given name. Example: git remote add origin https://github.com/deepikakolli4/project123.git origin acts as an alias to the remote repository. git remote -v List all remote repositories aliased. Example: git remote -v origin https://github.com/<your account name>/project123.git (fetch) origin https://github.com/<your account name>/project123.git (push) git fetch <remote alias> Fetches the remote repo to local but does not merge onto the current branch, instead creates a new...

CSS

CSS Selectors 101 CSS Selectors 101 This time I want to give a glimpse of CSS (Cascading Style Sheets). Before I jump into CSS, it's better to know what comprises a web page. Basically, any moderate web page is composed of three technologies: HTML – Content JavaScript – Behavior CSS – Presentation CSS is simply a presentation technology used in web pages to give a really cool look and feel to the HTML elements (content). CSS is simply a set of rules which will be combined with an HTML page to govern their appearance. CSS can be written three different ways: Inline styles – inlined inside a tag with the style attribute. Example: <div style="color: red;">This is a red text.</div> This limits to a specific element. Embedded styles – the styles are written inside an HTML page using the <style> tag. This limits to a specifi...

JAVA TUTORIAL 1

Java Knowledge Overview General Java Knowledge Who developed Java? Java was primarily developed by James Gosling and his team at Sun Microsystems (later acquired by Oracle Corporation). Java Version History Java 1.0 (January 1996): Initial release of Java. Introduced applets for interactive web content. Included AWT (Abstract Window Toolkit) for basic GUI development. Featured a robust set of standard libraries for networking, I/O, and data structures. Java 1.1 (February 1997): Enhanced event handling with the introduction of the Swing toolkit, providing a more powerful GUI framework. Added inner classes, which enabled better encapsulation and organization of code. Introduced JDBC (Java Database Connectivity) for database access. Java 1.2 (Java 2, December 1998): Renamed to Java 2 Standard Edition (J2SE). Introduced major enhancements: ...

Popular posts from this blog

LINE FEED AND CARRIAGE RETURN

CSS

GIT COMMANDS