wesley tanaka

Create MySQL hashed password for Puppet password_hash setting

()

To generate a password_hash for a MySQL user in the puppetlabs-mysql Puppet Forge module, run the mysql command line program and run the query SELECT PASSWORD('opensaysme'); where opensaysme is the password you want to use for the MySQL user. For example:

Switching from GoDaddy.com to Namecheap.com

()

Years ago, I registered a few domain names with GoDaddy under their cheap promotional pricing. Every year since, I've wanted to transfer my domains away from GoDaddy to avoid their jacked up renewal fees, but every year I'd procrastinate until the expiration date and, out of fear that the transfer would fail and I'd lose the domain names entirely, I'd end up searching online for a coupon, biting the bullet, and renewing with them.  Last year, I tried to switch to 1&1 but they did not support wildcard domain names, so I gave up.

aychty one

()

Ryan and I were walking down the street the other day near this sign, and he started pointing at it and saying, "ayhsty one"

It took me about 15 seconds to realize that he was saying "H-ty one", analogous to "four-ty one", "six-ty one", etc

You monkeys you

()

While Ryan was playing with his christmas present he suddenly announced, 

Implied State Space Size

()

Consider these two if statements:

If statement #1

if (color == RED and has_thorns == TRUE)
  return "Roses are red"
else if (num_petals == 5)
  return "Violets are blue"

If statement #2

if (species == ROSE)
  return "Roses are red"
else if (species == VIOLET)
  return "Violets are blue"

Water Transfer Printing

()

Lazy Parenting #2

()

I've heard Ryan use the word "because" a few times this past week, like: "[the colander is] empty [of] noodles because mommy ate them" and "isss cold because you put it in ruhfrigrator."

Teaching him how to ask "what's this?" seemed to work out quite successfully. Now that he knows what "because" means, I'm super excited to encourage him to start up a never-ending, incessant stream of "why"s.

The Architecture of Open Source Applications ePub download

()

You can download an ePub version of "The Architecture of Open Source Applications" (edited by Amy Brown and Greg Wilson) here.

The book is also available to read for free at http://aosabook.org/en/index.html under the Creative Commons Attribution 3.0 Unported license.

Using Eclipse with a Android project using the new gradle build system / project structure / layout

()

The Eclipse Android ADT plugin hard-codes paths for the AndroidManifest.xml file, the res directory and the gen directory.  If you migrate an Android project to the new Gradle project structure, it will stop working in Eclipse.  You can work around this by creating symbolic links from the new Gradle layout to the old locations expected by ADT.  For example, from the root of your project, if you have a android directory, you can run these commands:

Syndicate content
by Wesley Tanaka