Laurent Chassot

Sign in

… By building a simple local cache

Photo by henry perks on Unsplash

As you probably know, Firebase pricing is based on the number of documents requested. It already provides a method of paging when it comes to lists, but there is none for geolocation.

The idea here is to take the concept of paging by Geohash, used by many Flutter modules using GeoFire like geoflutterfire or flutter_geofire.
A Geohash consists of representing a geographic region with a hash. Knowing this, we can correspond a hash to the screen bounds.

The main problem with the modules above comes when having a lot of data displayed on…

Sometimes, it happens to me that my media keys are bound to Youtube or even don’t work at all. It’s really annoying when it happens because I only use them for Spotify. Let me show you how I fixed it to always be connected to Spotify.

- Credit:

Before going further, I invite you to test the following command in your terminal while having Spotify open to ensure the commands will work.

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause

If your music stops, then we can begin :)

The commands needed for each binding are:


dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause


dbus-send --print-reply…

Laurent Chassot

Hello :). I’m an engineer in Computer Science. Passionate about UX and UI design, I love to study how to make the life of users better.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store