Leave a comment

Occasionally my dad sends me random emails from friends and people he meets. Here are some nice quotes from one he sent me over the weekend.

Compassion is the language the deaf can hear and the blind can see.
– Mark Twain

Kindness is in our power even when fondness is not.
– Henry James

Today I bent the truth to be kind,
and have no regret,
for I am far surer of what is kind
then I am of what is true.
– Robert Brault

Treat everyone with politeness,
even those who are rude to you,
not because they are nice
but because you are.

Never look down on anyone unless you are helping them up.

I always prefer to believe the best of everybody, it saves so much trouble.
– Rudyard Kipling

Don’t be yourself – be someone nicer.

Never miss an opportunity to make others happy.
Even if you have to leave them alone in order to do it.

Love your enemies. It will confuse them greatly.


Arrowheads Adobe Illustrator CC

1 Comment

New version of illustrator always makes doing simple things hard. Here is a reminder of where to find arrow heads.

Window > Properties > Stroke


How to zoom scroll Mac

1 Comment

My buddy Dan showed me this cool trick for two finger zooming on the mac.

Open Accessibility in Preferences and select Zoom, then Use scroll gesture with modifier.

Screen Shot 2018-12-07 at 9.28.41 AM.png

Now when you see something you want to zoom into on the screen, hold down control, x2 finger swipe up, and move the mouse around and you will zoom!

Cool. Thx Dan.

Trouble Installing Link Conditioner

1 Comment

With the latest Mojave upgrade, Link Conditioner wasn’t installing correctly. You would follow instructions that would normally work like this


Only do have it disappear in the System Preferences after using it once.

My buddy Dan showed me the fix. First remove the link conditioner from your personally library preference pane like this

cd Library/PreferencePanes
rm -rf Network\ Link\ Conditioner.prefPane

Then manually install it in the machine preference by doing this

open /Library/PreferencePanes

And then manually dragging the icon from the Xcode package you downloaded

Screen Shot 2018-10-31 at 3.03.23 PM.png

Into the preference pain you just opened

Screen Shot 2018-10-31 at 3.03.30 PM.png

Once done, the conditioner should show up/and stay in your System Preferences.

Screen Shot 2018-10-31 at 3.06.19 PM.png

Thanks Dan!

How to find large files

Leave a comment

du -a . | sort -n -r | head -n 10
find . -size +100k 

du will show file size by dir
find will show all files over a certain size

How to serve up files locally from your Mac via a webserver

Leave a comment

Colleague Dan showed me this neat trick for serving up local files in your Android device as a way of getting access to self-signed certs.

# Simple web server for the local directory
alias webserver='python -m SimpleHTTPServer 8000'

How to add UI Automation test to existing Xcode project

Leave a comment

Create a new project.

Add a new target by hitting the ‘+’ sign near the bottom.

Screen Shot 2018-10-18 at 1.37.17 PM

Add iOS UI Testing Bundle

Screen Shot 2018-10-18 at 1.37.53 PM

Edit your scheme

Screen Shot 2018-10-18 at 1.39.38 PM

Confirm at testing bundle was added

Screen Shot 2018-10-18 at 1.39.50 PM

Open up your test

Screen Shot 2018-10-18 at 1.41.50 PM

And insert a break point

Screen Shot 2018-10-18 at 1.41.56 PM

Run your test. Hit record and Xcode will record your application press.

Screen Shot 2018-10-18 at 1.47.41 PM

Add accessibility to your buttons and controls like this

    let button: UIButton = {
        let button = UIButton()
        button.translatesAutoresizingMaskIntoConstraints = false
        button.backgroundColor = .green
        button.setTitle("GOT IT", for: .normal)
        button.setTitleColor(.black, for: .normal)
        button.addTarget(self, action: #selector(buttonPressed), for: .touchUpInside)

        button.accessibilityIdentifier = "gotItButton"

        return button

Sample test

    func testExample() {
        // Use recording to get started writing UI tests.
        // Use XCTAssert and related functions to verify your tests produce the correct results.

        XCUIApplication().buttons["GOT IT"].tap()
        XCTAssertTrue(XCUIApplication().buttons["gotItButton"].waitForExistence(timeout: 10))

Older Entries

%d bloggers like this: