wesley tanaka

Lazy Parenting

()

I've seen firsthand and heard from various sources that many toddlers go through a phase of constantly asking questions. Even though people warn me that this phase is tiring, and I'll wish it was over, I've been actively trying to encourage my son to become an incessant-question-asker as soon as possible. Every time we're out and about, I've been teaching him how to ask "What's this?" and "What's that?"

java.lang.IllegalArgumentException: transactions on multiple entity groups only allowed in High Replication applications

()

If you run a Java Google App Engine unit test with a vanilla LocalDatastoreServiceTestConfig instance, you will run into the error java.lang.IllegalArgumentException: transactions on multiple entity groups only allowed in High Replication applications:

Keys-only query using JDO in Google App Engine Java

()

To turn a Java Google App Engine JDO query into a keys-only query, call setResult(String) on it to specify that only the @PrimaryKey column should be returned.  JDO will convert this into a keys-only query on the datastore.

For example, if your entity class looks like this:

public class YourEntity {
  @PrimaryKey
  private String name;
// ...

I love you

()

Call a JSP from a servlet

()

If you want to include/execute a .jsp file from within a servlet, you can use the forward() method of the request dispatcher.

Dog Grooming Shop

Roppongi, Tokyo, Japan

Fox statue

Fushimi Inari Taisha Shrine, Kyoto, Japan

Peek-a-boo

()

Move Android SearchView Icon inside the text field

()

The Android SearchView, which allows you to display a search UI embedded inside the ActionBar at the top of your activity, can sometimes display a magnifying glass icon outside and to the left of the EditText like this:

and other times display the magnifying glass icon inside the EditText like this, much more like the search dialog:

Happy and Sad

()
Syndicate content
by Wesley Tanaka