RTCAMP
RTCAMP
What is the difference between git and github? Where does git stores data? What is
the gitignore file? For storing passwords we should use excryption or hashing? How
does the remember me function stores data?
From Git and Github -One logical -Web Traffic and optimization -Captcha -Javascript
-PHP -Database access in PHP -React, and someother web related topic
Following are the Questions that I got asked 1. JavaScript and React are Compiled
or Interpreted languages ? 2. Can we use git without GitHub ? 3. How to validate
email ? 4. what is encryption , Decryption and hashing ? what we use for password
storing in database? 5.How to design Captcha from scratch ?
1. Can we use Git without GitHub? 2. What is the difference between Git and
GitHub? 3. Where does Git store data? 4. Define encryption and hashing. 5.
Suppose your site is experiencing high traffic, causing lag. How would you manage it
to reduce server load? 6. Lift use which data structure
-question like form validation, web request, session, cookie, encryption, hashing etc.
Is there anything in JavaScript which can be done by JQuery and not by JavaScript
How to export a contacts backup in csv format without user intervention? 2. Is there a
way to tackle SQL Injection attack? 3. What are rainbow tables?
I was asked asked to explain difference between jQuery, JavaScript and Java.
Miscellaneous:
CDN and its advantages.
What is Composer and its files?
Differences between encryption, decryption, and hashing.
Creating a captcha without a database, session, or cookies.
Quality control automation.
Generating an OTP system.
Exporting contacts backup in CSV format without user intervention.
Tackling SQL Injection attacks.
Rainbow tables.
Names of servers you've used.
GIT::Git
is a version-control system for tracking changes
in computer files and coordinating work on those files
among multiple people.A Version Control System (VCS)
allows you to revert files back to a previous state, revert
the entire project back to a previous state, review
changes made over time, see who last modified
something that might be causing a problem, who
introduced an issue and when, and more. Using a VCS
also means that if you screw things up or lose files, you
can generally recover easily.
A repository a.k.a. repo is nothing but a collection of
source code.
So what is it?
The short answer is yes, you can. Git is a tool for revision control. GitHub is an
online service that allows you to store, manage, and share Git repositories in the
cloud. You can use Git with online services other than GitHub, with an in-house
server, or on your local computer without any server at all.
What is a Session?
Sessions are used to temporarily store data on the server so that it can be utilized on a
variety of different websites. To put it more simply, a session is the amount of time
that a user spends engaged in a particular activity. This period of time begins when
the user accesses any website or program and continues until the user exits the
application or shuts down the computer.
Because the HTTP protocol does not keep track of the user's status, the web server
does not recognize the user as they are navigating the apps available on the internet.
The information that the user enters into the program on the home page or any other
page will not be moved to any other pages in the application. Sessions are what are
used to remove this limitation from the game. Session variables, which can be of any
sort, are where the user's data can be saved if they are chosen to do so. The data that is
stored by session variables is either encrypted or converted to a binary form on the
server, which protects the data from being accessed by a third party.
When the user of the application logs out of that application or closes down their
computer, the session value is automatically detached. It is necessary for the session
values to be saved in the database if they are to be retained for a longer period of time.
Imagine a website containing two pages: main and water. Suppose a visitor
sees main first and then moves on to water. HTTP is a stateless protocol. So, if a typical
web server is managing this site, any knowledge gathered at main is lost when the visitor
browses over to water. In other words, water cannot take advantage of any information
that the visitor might have provided at main.
To get around this limitation, application servers detect when a visitor first enters a
website. At that point, the application server starts a session for this visitor. In the
preceding example, when the visitor requests the main page, the application server starts
a session. The website designer can use main to gather information about the visitor and
store that information in session variables. The information in session variables is
available to all subsequent pages. So, for example, if Bob provides his age to main,
and main's designer wrote the age to a session variable, then water could easily access
Bob's age.
Session variables contain values available for the duration of the session. When the
session ends, the application server destroys the session variables associated with that
session. Each session variable consumes memory on the application server, so creating
unnecessary session variables can hurt performance.
WebCenter Sites automatically creates some session variables; the website developer
can optionally create others.
Cookies are small pieces of data stored on a user's device by the web browser.
They are sent between the browser and the server with each request, allowing
the server to identify and track the user. Cookies can be used for various
purposes, such as session management, personalization, tracking user
behavior, and more.
What is HTTP?
An HTTP stands for Hypertext Transfer Protocol. The HTTP protocol provides
communication between different communication systems. When the user
makes an HTTP request on the browser, then the webserver sends the
requested data to the user in the form of web pages. In short, we can say that
the HTTP protocol allows us to transfer the data from the server to the client.
An HTTP is an application layer protocol that comes above the TCP layer. It
has provided some standard rules to the web browsers and servers, which
they can use to communicate with each other.
What is HTTPS?
The HTTPS protocol is secured due to the SSL protocol. The SSL protocol
encrypts the data which the client transmits to the server. If someone tries to
steal the information which is being communicated between the client and
the server, then he/she would not be able to understand due to the
encryption. This is the main difference between the HTTP and HTTPS that the
HTTP does not contain SSL, whereas the HTTPS contains SSL that provides
secure communication between the client and the server.
Encrption:: Encryption
is the process of converting a normal readable
message known as plaintext into a garbage message or not readable
message known as Ciphertext. The ciphertext obtained from the
encryption can easily be transformed into plaintext using the encryption
key. Some of the examples of encryption algorithms are RSA, AES, and
Blowfish.
HTML:HTML stands for HyperText Markup Language. It is a standard text
formatting language used for developing web pages
HTML is a language that is interpreted by the browser and it tells the
browser what to display and how to display.
HTML elements are defined by a starting tag, may contain some content and
a closing tag. <h1>Heading 1</h1>
Attributes are used along with the HTML tags to define the characteristics of
the element
The class attribute is used to specify the class name for an HTML element.
Multiple elements in HTML can have the same class value. Also, it is mainly
used to associate the styles written in the stylesheet with the HTML
elements.
Multiple elements in HTML can have the same class value, whereas a value
of id attribute of one element cannot be associated with another HTML
element
The HTML form is used to collect the user inputs. HTML provides a <form>
tag to create forms. To take input from the user we use the <input> tag
inside the form so that all collected user data can be sent to the server for
processing. There are different input types like ‘button’, ‘checkbox’, ‘number’,
‘text’, ‘password’, ‘submit’ etc.
Some advantages of HTML5 are:-
To manage high traffic and reduce server load on a website, you can employ several strategies.
Load Balancing: Implement load balancing to distribute incoming traffic across multiple servers. This
ensures that no single server bears the entire load, improving overall performance and reliability.
Content Delivery Network (CDN): Use a CDN to cache static content like images, stylesheets, and
scripts on servers distributed globally. This reduces the load on your main servers and accelerates
content delivery to users.
Caching: Utilize caching mechanisms for both static and dynamic content. Cached content can be
served directly to users, reducing the need for repeated database queries or computations.
Optimize Images and Files: Compress and optimize images and other static files to reduce their size.
This minimizes the amount of data transferred and speeds up page loading times.
Database Optimization: Optimize database queries, use indexes, and implement database caching.
This ensures that database queries are efficient, reducing the load on the database server.
Code Optimization: Review and optimize your website's code. Identify and eliminate any unnecessary
or redundant code that may contribute to increased server load.
Scaling Infrastructure: If the traffic surge is persistent, consider scaling your infrastructure by adding
more servers or upgrading hardware. Cloud services like AWS, Azure, and Google Cloud provide
scalable solutions.
A web server is software or hardware that serves content (such as web pages,
images, or other resources) to users over the internet. When users request a
web page by entering a URL in their web browser, the browser sends a
request to the web server, and the server responds by sending the requested
files to the browser, which then renders and displays the page.
in wesite they ask save cookie what happen when we reject will websitr still work
When a website asks you to save cookies and you choose to reject or decline
them, the website will still work to some extent, but your experience may be
affected. Here are some potential consequences of rejecting cookies:
.
Loss of Personalization: Many websites use cookies to remember your
preferences, such as language settings, themes, or personalized content. If you
reject cookies, these preferences may not be saved, and you might need to set
them each time you visit the site.
.
.
Authentication Issues: If a website uses cookies for user authentication
(keeping you logged in), rejecting cookies might require you to log in each
time you visit, as the site won't be able to remember your login status.
.