Wes AlvaroAndroid Dipxel PerfectThe Android DP unit is deceivingly simple. In the most basic case, 1DP = 1PX.5 min read·Dec 6, 2023----
Wes AlvaroMockito’s sinister silent stub secrettl;dr: Do not start your stubbing chain with Mockito’s when.4 min read·Mar 2, 2023----
Wes AlvaroShipping gear around JapanI have two sports I enjoy: scuba diving and snow boarding. The problem is that renting equipment is expensive and rental equipment is……9 min read·Oct 15, 2022----
Wes AlvaroAnnotations, how do they work?Annotations are something most if not every Java or Kotlin developer uses but how they work can still be a mystery. I thought I more or…6 min read·Oct 6, 2022----
Wes AlvaroFontMetrics for Spanning TextSpanned Strings are very powerful in Android. ReplacementSpans are perhaps the most powerful; they allow for inserting images or highlights…5 min read·May 17, 2022----
Wes AlvaroMigrating from SmartThings to Home Assistant on the Synology DS220+I’ve been unhappy with Samsung SmartThings for a while. It’s buggy, slow, hard to configure, pretty limited in customization, and…7 min read·Jan 16, 2022--1--1
Wes AlvaroSwitching from iTerm2 to KittyI’ve been a long-time, hardcore user of iTerm2 on Mac. One of the big reasons I love using my Mac everyday is because of iTerm2’s plethora…5 min read·Sep 15, 2021--3--3
Wes AlvaroAdding Dividers in Android LayoutsYou’ve probably wanted to separate the items in your Android list-type layouts (e.g. LinearLayout, RecyclerView, and ListView) on more than…2 min read·Aug 2, 2021----
Wes AlvaroDigging into logcat on-deviceWe all know how to run adb logcat and some of us might have used a flag or two or piped the output to grep but what do we do if we need to…1 min read·Jun 22, 2021----
Wes AlvaroDump Android thread stack tracesIf you’re debugging a Android application with Android Studio, it’s easy to inspect the stack traces of all the threads running in your…2 min read·Jun 22, 2021----