# Culture | Introduction to Sociology

Culture: Culture is the totality of learned, socially transmitted customs, knowledge, material objects and behaviour. It includes the ideas, values and artifacts of group of people.

# Hamming Code(7,4) Generation, Error detection & correction | Data Communications

In hamming code, there are 4 bits of original data & 3 bits of redundant bits. N = M+K, here, N = codewords/full message, M=Datawords/Original Message & K = Redundant bits. So, N = 4+3, = 7 bits.

# Error Detection & Correction | Data Communications

Burst Error: A burst error means when 2 or more bits in the data unit have changed.

Burst Error Length: The length from starting left-end corrupted bit to right-end corrupted bit in a data unit is called Burst Error Length.

# Static contents do not load always in Phoenix

While working with phoenix framework, you may face that static files are not working correctly.  I was trying to add custom css/js files but they were not working. I did some googling and found the solution. It is a problem with static path in endpoin.ex file.

# SQL Practice | Day 4

SCHEMA:

```REGIONS(REGION_ID, REGION_NAME)
COUNTRIES(COUNTRY_ID, COUNTRY_NAME, REGION_ID)
DEPARTMENTS(DEPARTMENT_ID, DEPARTMENT_NAME, MANAGER_ID,LOCATION_ID)
EMPLOYEES(EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, HIRE_DATE, JOB_ID, SALARY, COMMISSION_PCT, MANAGER_ID, DEPARTMENT_ID)
JOB_HISTORY(EMPLOYEE_ID, START_DATE, END_DATE, JOB_ID, DEPARTMENT_ID)
JOBS(JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY)
```

Question A: For each employee print last name, salary, and job title. Continue reading “SQL Practice | Day 4”

# Introduction to Probability Theory

### Sample Space and Events

The set of all possible outcome of an experiment while the precise outcome is unknown is called Sample Space and it is often denoted by S.

For a single coin: Sample Space, $S = \lbrace H, T \rbrace$
For two coins, Sample Space, $S = \lbrace (H, H),(H,T),(T,H),(T,T) \rbrace$
For a rolling dice, Sample Space, $S = \lbrace 1,2,3,4,5,6 \rbrace$