Answer:
For SGID you type this
$ find . -perm /4000
For SUID you type this
$ find . -perm /2000
Explanation:
Auxiliary file permissions, that are commonly referred to as “special permissions” in Linux are needed in order to easily find files which have SUID (Setuid) and SGID (Setgid) set.
After typing
$ find directory -perm /permissions
Then type the commands in the attachment below to obtain a list of these files with SGID and SUID.
Answer:
Half-wave rectifier converts an AC signal into a DC signal. It's called a half-wave because it only rectify the positive part of an AC signal.
AC Signal = An electrical signal that alternates between positive and negative voltage.
DC Signal = An electrical signal that only has positive voltage.
Rectify = A fancy word for converting something.
Adding a capacitor helps the positive part of the signal stay on longer. This work because the capacitor stores energy kinda like a battery. During the negative part of the AC signal, the energy stored in the capacitor will be drained and used, then the cycle repeats.
The load resistor is just there to prevent a short circuit from happening.
Answer:
import pandas pd
def read_prices(tickers):
price_dict = {}
# Read ingthe ticker data for all the tickers
for ticker in tickers:
# Read data for one ticker using pandas.read_csv
# We assume no column names in csv file
ticker_data = pd.read_csv("./" + ticker + ".csv", names=['date', 'price', 'volume'])
# ticker_data is now a panda data frame
# Creating dictionary
# for the ticker
price_dict[ticker] = {}
for i in range(len(ticker_data)):
# Use pandas.iloc to access data
date = ticker_data.iloc[i]['date']
price = ticker_data.iloc[i]['price']
price_dict[ticker][date] = price
return price_dict