Hossain Khan

@hossain.dev

Passionate Android engineer and curious tinkerer. πŸ‡¨πŸ‡¦πŸπŸ“±πŸžοΈπŸ”πŸ“ΈπŸ–οΈπŸŽ§

I finally got my #TRMNL-X and it just worked out of the box πŸ™ŒπŸ½ As weird as it may sound, the highlight of the show is the weighted magnetic 🧲 USB-C cable. I don't recall seeing this quality cable bundled with any products. Never giving up on this cable πŸ˜† Kudos to @trmnl.com team for delivering it!

TRMNL-X and bundled magnetic USB-C cable

I recently learned about Zensical from Zac's Metro project which migrated from MkDocs to zensical.org based site. I also tried to use it for my recent experimental project. Not having full Kotlin syntax highlighting was bothering me, so I applied client side shim to re-highlight using Shiki.

Better Kotlin syntax highlighting on Zensical with Shiki | Hossain's Dev Bytes

I replaced default Kotlin highlighting on my Zensical site with Shiki for cleaner tokens, better modern syntax support, and smooth light/dark theming.

hossain.dev

Noticed this new banner in the Google Play console today about Android developer verification. I guess this is happening despite real friction in the community.

Android developer verification bannerAndroid developer verification portal on google play

Quick investigation revealed that modern AI chat apps like Claude, ChatGPT, Perplexity etc uses an unique technique to do syntax highlighting on Android devices. The idea is simple - run Highlight.js in a hidden WebView and convert the output to native AnnotatedString. #AndroidDev #JetpackCompose

Syntax Highlighting on Android - Highlight.js as a Native Compose Engine | Hossain's Dev Bytes

How I built android-compose-highlight - a Jetpack Compose library that runs Highlight.js in a hidden WebView and converts the output to native AnnotatedString for real text selection and accessibility...

hossain.dev

All I want is go back in time! πŸ«₯ Much much less things to worry about.. even better go back enough where mom and dad only worries not me! Good old times!

I wrote about using hybrid solution to bring syntax highlighting to Android about 6 years ago! Since then I did not find any great solution that does syntax highlighting on compose natively, until very recently I found `kotlin-textmate` that bring full power of TextMate grammar based highlighting 🎨

The cost of pay-per-use AI tools has gone down over time - this upscaling be recraft-ai only took one cent! πŸ–ΌοΈ Combining multiple sources of AI tools can definitely give you super power to create what you want! :-) πŸ€– Replicate is my one stop shop to try out different AI tools on-demand.

Screenshot showing side by side how AI image upscaler can be super effective enhancing image.Cartoon image of Android developer generated by OpenAI 2.0