Questions
The following is a mock-up of a Nginx web server access log. There are a few...

The following is a mock-up of a Nginx web server access log. There are a few entries that might indicate someone is searching for an attack vector. Write a command that will do all of the wollowing;

  1. Read the lines from a file
  2. Use a single regular expression to find all lines where;

    Someone tried to access a file starting with a period (example ".htaccess")
    OR
    Someone attempted to open one of; "php.ini" or "wp.conf"
    OR
    Someone tried to retrieve a parent directory (example ".." somewhere in the URL)
  3. Output a list of IP addresses without duplicates

access.log

10.10.38.12 - - [25/Aug/2018:00:13:00] "GET https://picard.zone/index.html (Links to an external site.) HTTP/1.1 200 Mozilla/.05"
12.10.38.12 - - [25/Aug/2018:00:14:18] "GET https://picard.zone/catalog.html (Links to an external site.)?id=5 200  Mozilla/5.0"
64.34.88.11 - - [25/Aug/2018:00:15:20] "GET https://picard.zone/catalog.html (Links to an external site.)?id=30 200  Mozilla/5.0"
51.85.91.44 - - [25/Aug/2018:00:16:33] "GET https://picard.zone/ (Links to an external site.)specials/coupon.php 500  Mozilla/5.0"
1.1.1.1 - - [25/Aug/2018:00:16:40] "GET https://picard.zone/ (Links to an external site.)specials/.htaccess 500  Mozilla/5.0"
1.1.1.1 - - [25/Aug/2018:00:16:44] "GET https://picard.zone/ (Links to an external site.)specials/.settings 500  Mozilla/5.0"
192.168.1.100 - - [25/Aug/2018:00:16:50] "GET https://picard.zone/ (Links to an external site.)specials/wp.conf 500  Mozilla/5.0"
192.168.1.100 - - [25/Aug/2018:00:16:55] "GET https://picard.zone/ (Links to an external site.)specials/../settings.py 500  Mozilla/5.0"
4.2.2.2 - - [25/Aug/2018:00:16:58] "GET https://picard.zone/ (Links to an external site.)specials/php.ini 500  Mozilla/5.0"
11.22.33.44 - - [25/Aug/2018:00:17:42] "GET https://picard.zone/ (Links to an external site.)finish.php 200  Mozilla/5.0"
12.34.56.87 - - [25/Aug/2018:00:18:01] "GET https://picard.zone/ (Links to an external site.)settings.html 200  Mozilla/5.0"
12.34.56.87 - - [25/Aug/2018:00:19:12] "GET https://picard.zone/catalog.html (Links to an external site.)?id=5 200  Mozilla/5.0"
12.34.56.87 - - [25/Aug/2018:00:20:11] "GET https://picard.zone/ (Links to an external site.)privacy.py 200  Mozilla/5.0"

10.10.38.12 - - [25/Aug/2018:00:13:38] "GET https://picard.zone/index.html (Links to an external site.) HTTP/1.1 404 Mozilla/.05"

HINT: The lines you are interested in are in bold; lines 5 to 9.
HINT: In your terminal, create a new file called 'access.log' and copy-paste the above lines into it
HINT: You will likely need to use; cut, uniq and grep in your command

In: Computer Science

On January 4, 2018, Runyan Bakery paid $324 million for 10 million shares of Lavery Labeling...

On January 4, 2018, Runyan Bakery paid $324 million for 10 million shares of Lavery Labeling Company common stock. The investment represents a 30% interest in the net assets of Lavery and gave Runyan the ability to excercise significant influence over Lavery's operations. Runyan chose the fair value option to account for this investment. Runyan received dividends of $2.00 per share on December 31, 2018, and Lavery reported net income of $160 million for the year ended December 31, 2018. The market value of Lavery's common stock at December 31, 2018 was $31 per share. On the purchase date, the book value of Lavery's net assets was $800 million and:

a. The fair value of Lavery's depreciable assets, with an average remaining useful life of six years, exceeded their book value by $80 million.

b. The remainder of the excess of the cost of the investment over the book value of net assets purchased was attributable to goodwill. Required:

1-a. Prepare all appropriate journal entries related to the investment during 2018, assuming Runyan accounts for this investment under fair value option, and accounts for the Lavery investment in a manner similar to what it would use for securities for which there is not specific influence.

(Record the purchase of Lavery stock for $324 million) (Record Runyan share of Lavery's $160 mil net income)

(Record the receipt of cash dividends of $2 per share on 10 mil shares)

(Record any nec. entry related to depreciation. The fair value of Lavery's depreciable assets, with an average remaining useful life of six years, exceeded their book value by $80 mil) (Record any nec. adj entry to correctly report the investment on the balance sheet. The market value of Lavery's common stock at Dec 31 2018 was $1 per share)

1-b Calculate the effect of these journal entries on 2018 net income, and the amount at which the investment is carried in the December 31, 2018, balance sheet.

(Effect on net income)

(Investment)

2-a Prepare all appropriate journal entries related to the investment during 2018, assuming Runyan accounts for this investment under the fair value option, but uses equity method accounting to account for Lavery's income and dividends, and then records a fair value adjustment at the end of the year that allows it to comply with GAAP.

(Record the purchase of Lavery Labeling stock for $324 mil)

(Record Runyan's share of Lavery's $160 mil net income)

(Record the receipt of cash dividends of $2 per share on 10 mil shares)

(Record any nec entry to related depreciation. The fair value of Lavery's depreciable assets, with an avg remaining useful life of six years, exceeded their book value by $80 mil) (Record any nec adj entry to correctly report the investment on the bal sheet. The market value of Lavery's common stock at Dec 31, 2018 was $1 per share)

2-b Calculate the effect of these journal entries on 2018 net income, and the amount at which the investment is carried in the December 31, 2018, balance sheet.

(Calculate the effect of these journal entries on 2018 net income, and the amount at which the investment is carried in the Dec 31, 2018 balance sheet)

(net income) (Investment)

In: Accounting

SUPPLEMENTAL PROBLEM 19-1 (req. 1, 2, 3) International Roofing Systems (IRS) Company began operations several years...

SUPPLEMENTAL PROBLEM 19-1 (req. 1, 2, 3)

International Roofing Systems (IRS) Company began operations several years ago. At the end of 2017, the only existing temporary differences were the difference described in (e) and (f) below (hint: this creates balances at the end of 2017 in the deferred tax balance sheet accounts). In addition, there are four other tax differences arising in 2018 and 2019. These differences are as follows:

(a)   Interest revenue earned on an investment in tax-exempt municipal bonds is $34,000 each year.

(b)   In 2018, pretax financial income includes payments of fines for polluting of $100,000.

(c)   IRS began franchising its business at the beginning of 2018 and collected $30,000 of franchise fees for services to be rendered in the initial year and over the next several years. Franchise fees are reported when collected for tax purposes. For financial reporting purposes, franchise fees are recognized as revenue when services related to the franchise agreement are provided; these amounts are $20,000 in 2018 and $4,000 in 2019.

(d)   At July 1, 2018, IRS purchased a subsidiary that resulted in an amount of $600,000 being assigned to goodwill. For tax purposes, the goodwill is amortized and deducted over a 15-year period on a straight-line basis. For financial reporting purposes, goodwill is not amortized, but is required to be tested for impairment; at the end of 2018, IRS determined that goodwill is not impaired, but at the end of 2019, IRS determined that the goodwill has an impairment loss of $45,000.

(e)   Several years ago, IRS purchased equipment at a cost of $200,000. For financial accounting purposes, straight-line depreciation over the estimated useful life of 10 years is used. For tax purposes, the MACRS system is used and the equipment falls in the 7-year recovery class. As of the end of 2017, the accounting basis for the carrying value was $120,000 and the tax basis was $62,480. For 2018 and 2019, the MACRS rates for depreciation are 8.93% and 8.92%, respectively.

(f)    IRS has a defined benefit pension plan for its employees. For financial reporting purposes, the accrual basis is used and for tax purposes, pension costs are deducted as funding contributions to the plan are paid. As of the end of 2017, pension expense for financial reporting has been $200,000 greater than funding contributions. Pension expense for financial reporting purposes is $42,000 in 2018 and $50,000 in 2019, and the amount deducted for tax purposes is $2,000 in 2018 and $5,000 in 2019.

Additional information:

ü Pretax financial income $180,000 for 2018 and $210,000 for 2019.

ü The enacted tax rate, effective in 2018, is 25%.

ü As of the end of each year, management estimates that it is more likely than not that future deductible amounts will not be realized as follows: 2017: $10,000; 2018: $12,000; 2019: $15,000

REQUIRED:

(1)   Complete year-by-year schedules through 2019 for each temporary difference showing the book amount, tax amount, current year taxable (deductible) amount, and future taxable (deductible) amount; note that for (e) and (f), you will need to start your schedule with the future taxable (deductible) amount as of the end of 2017.

(2)   Prepare schedules to reconcile between pretax financial income and taxable income for 2018 and 2019. Classify the tax differences as permanent or temporary.

(3)   Prepare journal entries to record the current portion of income tax expense for 2018 and 2019.

In: Accounting

Suppose you are enrolled in Oceanside University (OU). Tuition fees for the year are 2000+(1000 x...

Suppose you are enrolled in Oceanside University (OU). Tuition fees for the year are 2000+(1000 x the number of credits you take per year). This is your only option if you attend University.

a) [9 points] Assume for this part that we are in a pre-COVID-19 world and all classes are face-to-face etc. Suppose quantity is the number of credits per year that you can take. Assume also that credits can only purchased in integer amounts. Create a small, clearly labeled table that captures your Marginal Willingness to Pay (MWTP) for every credit, no equations. Explain carefully how you calculate these numbers. Does your MWTP increase or decrease with the number of credits taken? Why? Note: the actual numbers don't matter as much as your explanation about how you would determine these numbers.

b) [8 points] Now COVID-19 hits. You, your family, and everyone in your city are all healthy, thankfully, but all classes move online. Tuition fees stay the same. How does your Does your MWTP in part (a) change? Does your decision to attend University change when classes move online?. Why or why not? Explain your reasoning.

In: Economics

On Wednesday, Frederick advertised his Nikon D800E digital camera in the local newspaper for £2000. George,...

On Wednesday, Frederick advertised his Nikon D800E digital camera in the local newspaper for £2000. George, on seeing the advertisement, called at Frederick’s house on the same day to see the camera. After discussion, Frederick offered to sell the camera to George for £1500. George stated that he would need some time to think it over but that Frederick should assume if he heard nothing from George by Thursday evening, that George had bought it. Frederick replied that this arrangement was fine by him.

At 3:00 p.m. Hari telephoned Frederick and offered to buy Frederick’s camera for £2300. Frederick immediately accepted Hari’s offer and e-mailed George revoking his original offer. Unknown to Frederick and George, there was a problem with George’s internet service provider and the message to George was never directed to him. Although Frederick did not know this, he was worried about the matter and tried to telephone George again at 6pm. Frederick spoke to Isabel, George’s wife, and told her that the camera had been sold. Isabel said that she expected George home at 6:30 p.m. and would pass the message on to him then. However, George had already decided to buy the camera and had faxed his acceptance to Frederick’s home at 5:15 p.m. Frederick did not read George’s acceptance until 6:30 p.m. George came at 7:15 p.m. and Isabel then gave him the message from Frederick.

  1. What would Frederick’s advertisement amount to?

  2. Who made the offer in this case?

  3. State two (2) cases distinguishing an invitation to treat from an offer:

  4. What is the general principle governing the acceptance of an offer?

  5. State the case that supports this principle:

  6. List one exception to the general principle governing acceptance of an offer:

  7. Could Frederick accept Hari’s offer? Give reasons.

  8. What is the general principle governing the revocation of an offer?

9. Could Frederick communicate the revocation of his offer to George, to George’s wife, Isabel? Give reasons.

10. What is the principle of law governing the Postal Rule?

  1. What is the principle of law governing instantaneous forms of communication?

  2. Was a valid contract formed between Frederick and George?

In: Economics

Suppose you make some income when healthy, IH = $2000, and none when sick, IS =...

Suppose you make some income when healthy, IH = $2000, and none when sick, IS = 0, and are considering the following an insurance contract with premium, r = 540, and insurance payout when sick, q = $1800.

a. What probability of sickness would make the insurance contract actuarially fair? What would the probability of sickness need to be for the insurer to make positive profits in expectation? Explain/show your work.

b. Is this potential contract an offer of full insurance or partial insurance? Explain/show your work.

c. What is your expected income if you purchase this contract and your probability of sickness is 0.2?

d. Assume the individual’s utility over income is U(I) = √ I and has a probability of sickness, p = 0.2. Calculate your expected utility E[U(I)] (a) with the contract and (b) without the contract.

e. Is this individual risk averse? Explain. (2 points) f. Should the individual purchase this contract? Explain.

In: Economics

An insurance company collects data on​ seat-belt use among drivers in a country. Of 2000 drivers...

An insurance company collects data on​ seat-belt use among drivers in a country. Of

2000 drivers

30 -39 years​ old,

23​%

said that they buckle​ up, whereas

482

of

1800

drivers

55-64

years old said that they did. Find a

90​%

confidence interval for the difference between the proportions of​ seat-belt users for drivers in the age groups

30-39

years and

55-64

years.

Construct a

90​%

confidence interval.

In: Statistics and Probability

A parachutist whose mass is 80 kg drops from a helicopter hovering 2000 m above the...

A parachutist whose mass is 80 kg drops from a helicopter hovering 2000 m above the ground and falls toward the ground under the influence of gravity. Assume that the force due to air resistance is proportional to the velocity of the​ parachutist, with the proportionality constant b1=20 ​N-sec/m when the chute is closed and b2=100 ​N-sec/m when the chute is open. If the chute does not open until the velocity of the parachutist reaches 35 ​m/sec, after how many seconds will the parachutist reach the​ ground? Assume that the acceleration due to gravity is 9.81 m/s^2.

In: Advanced Math

The processing division of the Sunrise Breakfast Company must produce one ton (2000 pounds) of breakfast...

The processing division of the Sunrise Breakfast Company must produce one ton (2000 pounds) of breakfast flakes per day to meet the demand for its Sugar Sweets cereal. Cost per pound of the three ingredients is: Ingredient A $4 per pound Ingredient B $3 per pound Ingredient C $2 per pound Government regulations require that the mix contain at least 10% ingredient A and 20% ingredient B. Use of more than 800 pounds per ton of ingredient C produces an unacceptable taste. Determine the minimum-cost mixture that satisfies the daily demand for Sugar Sweets.

In: Advanced Math

Can you please explain me this question? Thanks! Anette made deposits of $2000 at the beginning...

Can you please explain me this question? Thanks!

Anette made deposits of $2000 at the beginning of every three months for seven years into an investment fund that was earning 7.2% compounded quarterly. She left the money in the fund for another three years to accumulate interest. If the fund was earning the same interest rate during the entire time period, what was the amount of interest earned on her investment during the term?

In: Finance