solution

How to tell grep to ignore special characters in a string (solution)

Back in the old days I thought that any pattern that was including in single-quotes with the Unix grep command meant that the pattern inside the string was completely ignored by grep. But these days I have to escape special characters with a backslash character, which is really annoying. This example shows what I mean:

This is a page from my book, Functional Programming, Simplified

More sales tips

The most important thing I can tell you about selling is to put down this book, and go buy a copy of How I Raised Myself From Failure to Success in Selling, by Frank Bettger. It’s an old book, but it’s the single most important book on “selling” I have ever read.

In addition to that suggestion, here are a few other important sales tips I know.

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

You can’t always save the client

“When you can do nothing, what can you do?”

A Zen koan

As I’ve mentioned, you’re hired to be a consultant because you’re a problem-solver, so it really hurts when you can’t help a client. It’s a tough lesson, but it’s an important one:

Despite your best efforts,
you can’t always save the client.

This is a page from my book, Functional Programming, Simplified

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.

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

Giving advice: If you were my brother ...

“The way is not difficult. 

Only there must be no wanting, 
or not-wanting.”

Chao-chou

Once you’ve become the high-paid, top-level consultant you desire to be, an important of your work comes down to giving advice. Once the big decisions have been made, there can also be a ton of detail work to be done -- but it all starts with the big decisions.

Android: How to store static Help text in an Android XML file

As a note to self, when you’re writing an Android application and you think you want to store some static text in an external file, a better approach can be to create a resource file under res/values.

For example, I’m currently adding some help text to an Android app, and to do that I created a file named strings_help.xml under the res/values directory. That file contains HTML wrapped in an XML CDATA tag, like this:

Android File Transfer error: Can’t access device storage (solved)

Summary: This article shows a solution to the Android File Transfer app “not working on Mac” problem, where you get the error message, “Can’t access storage device.” (This solution probably also works on Microsoft Windows systems, though I don’t know for sure.)