Programming

33 articles

Accessing your application database from Android Studio

Open the Terminal window (Alt + F12) or: Then list your devices with the adb command. This will display both running emulators and connected devices: Use the device name to open a connection: To avoid a Permission denied error while trying to access your application files, use the run-as command:…

Accessing your application files from Android Studio

While learning to play with SQLite databases in Android, I wanted to check the .db file generated by my code in the emulator. I was unable to find it directly with the built-in Files application because it doesn't let us see system folders. Fortunately, Android Studio 3+ comes with the Device…

[Git] List the files which have been modified between two commits/tags

I needed to know the exact list of files that had been modified between my last two tags: You can replace the tags by commits: Source

Merge two versions of a file with git-checkout

I have slightly different i3 configuration files between my desktop and laptop computers. In this case, the laptop keyboard is missing a Play/Pause multimedia key. This is where the two files differ: the laptop has a different key binding for running the music player. Having recently added new…

Nuke (remove all traces) of a file in Git history

First note: if you are not alone on the project, consult with your colleagues before doing this. Because we are about to rewrite history and other contributors will be forced to manually rewrite their history too. Second note: if what you want to remove is sensitive material (e.g. passwords),…