# problem

Business scandals/problems and how they affect stock prices over time alvin March 29, 2018 - 1:06pm

Seeking Alpha has a good article on how the last eight corporate scandals/problems have affected their stock prices over time. Useful stats: “Excluding Facebook, the median length of the declines is 63 days. The median percentage decline is 35%.”

## Solution to the “Mac screensaver won’t start” problem

How to fix a three-wire Christmas light string alvin December 2, 2017 - 10:38am

Yesterday we had a three-wire Christmas light string where the first half of the string was working, but the second half of the light string wasn’t working. We couldn’t fix it by replacing the bulb right where the light string stopped working, so I looked into it and found this helpful (but a little too technical) article.

This is a page from my book, “A Survival Guide for New Consultants”

## Learn how to influence people

“When you listen to someone,  you should give up all your preconceived ideas  and subjective opinions; you should just listen to him,  just observe what his way is.”

Zen Master Shunryu Suzuki

If you’ve read the previous chapters, you’re now well past the basics. You’re a trustworthy person, a problem solver, you don’t create any problems for your sponsor, and you know how to make the big decisions. Now we’ll dig into a few of the finer points of being a consultant.

How to choose a Scala collection method to solve a problem alvin June 3, 2015 - 6:09pm

Note: This is an excerpt from the Scala Cookbook (partially re-worded and re-formatted for the internet). This is Recipe 10.3, How to choose a Scala collection method to solve a problem.

## Problem

There are a large number of methods available to Scala collections, and you need to choose a method to solve a problem.

## Solution

The Scala collection classes provide a wealth of methods that can be used to manipulate data. Most methods take either a function or a predicate as an argument. (A predicate is just a function that returns a Boolean.)

After doing a little research, it looks like the creators of Android Studio made a quirky decision to want to enforce the use of Java 6 on Mac OS X platforms, presumably to have better font rendering. They did this by putting `1.6*` in their Info.plist file instead of `1.6+` (and they’ve done this in more than one version of Android Studio. This image (from this link) shows the suggested way to fix the problem, but you can also edit the Info.plist file to solve the problem.