Skip to main content

Posts

Showing posts from 2023

Electric Charge - Definition, Types and How to Calculate

Electric charges have 2 signs: positive(+) and negative(-). The same charges repel while opposite charges attract.   How does a particle or an object get charged? Well, the atom consists of neutral neutrons and positive protons packed in the central nucleus with negative electrons orbiting around the nucleus. When the number of electrons is higher than the number of protons, the particle becomes negatively charged. And when number of protons is higher than the number of electrons, the particle becomes positively charged. When particles bond together, the electrons that aren't used in the said bond become conduction or free electrons that are free to roam while leaving positively charged particles. This material is called a conductor . Some examples of a conductor include metals, water, and the human body. If the material has barely or any free electrons it is said to be an insulator . Some examples of an insulator are plastic, fabric, and glass. Semi-conductors are somewhat in-be

Vectors in Cylindrical and Spherical Coordinate Systems

 It is useful to learn about other coordinate systems. For example, to solve a problem involving a cylindrical shape like electromagnetic fields on a rod, you should use a cylindrical spherical coordinate system. For problems involving a sphere, like electromagnetic fields of a sphere, you should use spherical coordinate systems. Cylindrical Coordinate System     Cylindrical coordinates add the Z dimension to the polar coordinates (r, θ). It's dimensions are  (r, θ, z) which are radial, azimuthal, and vertical axes.  From cartesian to cylindrical: From cylindrical to cartesian: x = r*cos(θ) r²= x² + y² y = r*sin(θ) tan(θ)=y/x z = z z = z Spherical Coordinate System Spherical coordinates are  (r, θ, φ) which are radial, azimuthal, and vertical axes.  From cartesian to spherical: From spherical to cartesian: x = r*sin(θ)cos(φ) r²= x² + y² + z² y = r*sin(θ)sin(φ) cos(θ)=z/r z = r*cos(θ) tan(φ) =y/x This gif can help you visualize how changing each coordinate changes the position of ou

Predicate logic explained (with examples)

What is predicate logic and how is it different from propositional logic? Consider the example: All men are mortal. Socrates was a man. Socrates is mortal. This argument can't be expressed as propositional logic. Notice the keyword "All". Propositional logic only has one variable. However the statement "All men are mortal" is a predicate. It is neither true or false. It is both depending on who the subject is also known as the predicate variable. For example, the statement "Elon Musk is a billionaire" is true, but the statement "I am a billionaire" isn't. Unless, I become one in the coming years. Predicates A predicate is a statement that contains variables and that may be true or not depending on the values of these variables. Predicate : P(x) is a color. Predicate Instantiated (Proposition) : P(red) is a color. Predicate's domain (values which x can take): {red, green, apple} You can also think of a predicate as a function. f(x) =

Discrete Mathematics - Inference Rules for Propositional Logic

Why do we grab an umbrella when the weather is set to be rainy for the day? How does your weather app recommend outdoor activities when the weather is sunny? It seems as simple as one plus one but these rules we use for our logical reasoning are the basis for many fields such as mathematics, computer science, philosophy, and legal reasoning.

Types of AWS Compute Services

In the Cloud, there are many services that allow you to host your application. One such service is AWS Elastic Compute Cloud  (EC2). EC2 is a virtual machine where you can rent its computing power to host your web applications, gaming server, processing datasets, running analytics, and many more. Companies such as Netflix, Airbnb, and financial institutions use EC2 to run handle heavy compute and storage requirements, such as on-demand delivery of video content, process bookings, handling search queries, managing data storage, risk analysis models, performing algorithmic trading, and handling high-frequency trading operations. However, not everyone wants to endure the hard labor of configuring and maintaining servers. We just want to focus on building good and unique applications, things that are vital to our company. With serverless computing, you can do just that. Serverless Computing

Mastering Decoupled Cloud Architecture with Messaging and Queueing | Amazon SNS and SQS

In this blog, we'll explore microservices architecture—a modern approach to software development that brings flexibility, scalability, and resilience. We'll explain what microservices are and how they differ from traditional architectures, emphasizing the benefits they offer for application development. Additionally, we'll uncover the important role of messaging and queueing services like Amazon SNS and SQS in creating responsive and modular applications.  Monolithic applications are the traditional architecture for applications, which were the standard until the introduction of the Microservices approach. However, they are still in use today, particularly for simple landing pages or business websites. For more complex applications, the Microservices approach is religiously followed. The table below compares the monolithic and microservices approaches, highlighting their respective advantages and disadvantages:

Scalability in the Cloud | AWS EC2 Auto Scaling and Elastic Load Balancer

Imagine you own a cinema, and on the weekends, there's a huge influx of customers visiting your place. However, on weekdays, only a few customers show up. This creates a challenge in managing your workforce effectively. One approach is to hire more full-time employees to ensure timely service during the busy weekends. But this means you'll end up paying for excess labor during the slower weekdays. Another option is to hire fewer employees, resulting in long queues and frustrated customers during peak times. Now, let's relate this situation to digital operations. Traditional on-premises data centers are like having a fixed amount of computing capacity, similar to having a fixed number of full-time workers. If the demand for computing resources is lower than your data center capacity, you'll be paying for unused capacity. On the other hand, if demand exceeds your data center capacity, it can take weeks to scale up your infrastructure to meet

What is Amazon EC2? Definition, Types and Pricing

Amazon EC2, short for Amazon Elastic Compute Cloud, is a web service provided by Amazon Web Services (AWS) that allows users to rent virtual servers, known as instances , in the cloud. These instances provide scalable computing capacity , enabling users to easily and flexibly run applications and perform various tasks without having to invest in physical hardware. EC2 offers a wide range of instance types with different configurations to meet the specific needs of users, such as CPU, memory, storage, and networking capabilities. It is a popular solution for hosting websites, running applications, and handling large-scale data processing workloads in a cost-effective and efficient manner. Key features of Amazon EC2 include: virtual computing environments (instances),  preconfigured templates (Amazon Machine Images),  instance types,  secure login information,  storage volumes,  multiple physical locations (Regions and Availability Zones),  firewall security groups,  static IPv4 ad

Top In-Demand Cloud Computing Jobs

With the rapid increase in the demand for cloud computing in a very short time, businesses are struggling to find professionals with the right cloud computing skills. If you want to break through in this industry or are looking to make the horizontal move from an on-premises IT role to a cloud administrator, this is a simple blog to give you the fundamental idea in a short amount of time. Job Roles in the Cloud Cloud Architect responsibilities Overall cloud strategy and is in charge of the entire cloud environment, build blueprint for the whole cloud Supervises deployment in the cloud environment, Application architecture, and All aspects of the cloud Understands how services are connected and the integration of services Understands Amazon CloudWatch and logging Understands AWS Identity and Access Management (IAM) and the security involved   System administrator responsibilities Overall performance of cloud systems Managing configurations Completing detailed tasks Assi