Wes Alvaro·Jun 13, 2024State vs StateFlow in ComposeWhen writing a ViewModel for a Compose UI, should I use Compose States or the more general-use Kotlin StateFlows? I recently asked myself…A response icon1A response icon1
Wes Alvaro·Dec 6, 2023Android Dipxel PerfectThe Android DP unit is deceivingly simple. In the most basic case, 1DP = 1PX.
Wes Alvaro·Mar 2, 2023Mockito’s sinister silent stub secrettl;dr: Do not start your stubbing chain with Mockito’s when.
Wes Alvaro·Oct 15, 2022Shipping 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……
Wes Alvaro·Oct 6, 2022Annotations, 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…
Wes Alvaro·May 17, 2022FontMetrics for Spanning TextSpanned Strings are very powerful in Android. ReplacementSpans are perhaps the most powerful; they allow for inserting images or highlights…
Wes Alvaro·Jan 16, 2022Migrating 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…A response icon1A response icon1
Wes Alvaro·Sep 15, 2021Switching 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…A response icon4A response icon4
Wes Alvaro·Aug 2, 2021Adding 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…
Wes Alvaro·Jun 22, 2021Digging 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…