alpaca0984.log
Love coding with a cup of cappuccino with soy milk
Posts
Change WebView's theme through JavaScript
I added a WebView in an Android app and found it doesn't interoperate with the prefers-color-scheme CSS media feature as well as it's explained in the official doc. It works with Android 13 but not...
Google — Place Autocompletion API
If you work on an application that requires your users to fill out their addresses, there is an SDK that you should consider using. It is the Google's Place Autocomplete SDK. It enables your users..
Detekt — Submit a review to the GitHub
Detekt is a static code analysis tool for Kotlin. It's more than just a fancy linter. It warns us of potential bugs and performance issues. Also, it suggests you follow Coroutine's best practices if you don't...
Composition over inheritance
Have you ever heard of “composition over inheritance”? It's one of my favorite concepts in software design. According to Wikipedia, it is about Classes should achieve polymorphic behavior and...
Scrum is just a continuous improvement
If you are a software developer and in an agile-oriented team, probably you have experienced something called scrum, or you do it now. Do you like it? I didn’t use to. That’s because, once every...
Android WebView — Intercept Download
In general, embedding a WebView inside native Android app is not so difficult. However, if you want to intercept interactions inside the WebView, it can be very tricky. Did you ever try intercepting download for like...
Kodein — overwrite for a testing
Kodein is a simple and easy-to-use dependency injection that works on JVM. I use it in our project’s data layer which takes care of networking. Let’s see a simple example...
Clean code, clean commits and clean PR
If you are a software developer, you write code, commit changes, and open pull requests. Do you have good practice for them? Here I will note my tips. They’re quite simple but really...
Jetpack Compose — Where is recomposed?
After I published my last post "Jetpack Compose - One-time request", I came up with a question if it works in any condition. SharedFlow doesn't persist value inside of it so I expected it would...
Jetpack Compose — One-time request
Thanks to the Jetpack Compose, building Android UI is much easier than it used to be. Within composable functions, we can do almost whatever we want. However, it is a good practice to use view models as state...
Composition in Python
I'm a big fan of "Composition over inheritance". I mainly use Kotlin for my job and it has a built-in delegation mechanism which I like very much. Recently I have worked on a Python project with my friend...
A Minimal Environment for Octave with VSCode
If you're interested in Data Science or Machine Learning, probably you heard about Andrew Ng Machine learning at Coursera. Yes, I'm one of them. One thing which I think is interesting is that it uses...
AWS Summit 2022 Berlin
On 12th May, I attended AWS Summit Berlin. The place is huge and clean and what I'm impressed with was that they offered free Curry 36. I didn't get one because there was always a long line of people waiting...
Chrome extension to order a latte
I live in Berlin which has so many nice cafes. I like going there and opening a laptop and doing something. Recently I found one that serves really really nice Latte. I don't remember how many times...
Convert Markdown to HTML with Syntax highlighting
While I was creating this blog's template, I wanted to convert Markdown files into HTML ones with code syntax highlighting. Fortunately, there is a "remark" that works with markdown as structured data...