Category Archives: instructions

Android Studio Permanently Change Debug Configuration for Working Directory $MODULE_DIR$ and app:assembleDebugUnitTest

On Mac OS X, Android Studio’s default debug Unit Test build configuration generally doesn’t run with default settings complaining that: AndroidManifest.xml not found or not a file; it should point to your project’s AndroidManifest.xml To fix this error you need to edit your debug configuration to set Working Directory as $MODULE_DIR$ and it makes builds… Read More »

Android Studio – Failed to Sync Gradle project – Fix

Matching SDK versions identified in build.gradle (Module: app) with the SDK versions you have installed via SDK Manager, then “Sync Now”, will fix most Android Studio build errors. Common Android Studio build errors: Failed to Sync Gradle project Failed to find target android-21 Install missing platform(s) and sync project If you’re building / running someone else’s project… Read More »

Android Studio Git Clone Push Pull Repository

For personal development in Android Studio, using BitBucket as remote repository here’s my VCS workflow using Git. Android Studio VCS setup for untracked project: VCS -> Import into Version Control Create Git Repository Add files & directories to track in Git, using File Explorer (left window) Since these are personal private projects, git add all Android… Read More »

Undelete Mac Files Free

To undelete Mac files free, here is a step-by-step guide to using a free Mac undelete program called Photorec by Christophe GRENIER of CG Security.  (Huge thanks to Christophe for making this program and making it free to the world.) Overview – Undelete Mac Files Free Download Mac undelete program – photorec/testdisk Unzip program Use Terminal program to run… Read More »

Linux do-release-upgrade Checklist Recover from Broken Pipe

Before a do-release-upgrade in Ubuntu Linux, here’s a quick checklist of todo’s: Backup important files (apache sites / log files / conf files, PHP .ini files, databases, cron scripts, .bash_aliases, .profile, upstart scripts) Clear up enough space for upgrading (usually around 1GB) Open up a secondary SSH window and alternate port for firewall if you get… Read More »

ls sort by date modified os x

Sorting directory or file listing by date last changed/modified on Mac OS X (with long listing & attributes such as size & permissions): ls -latc On linux: ls -laSt

Bash move-jump word forward backward iTerm

In bash terminal, to skip forward or backward whole words you need to send meta + f and meta + b, but Mac’s don’t have alt keys, rather option. iTerm allows you to change option to meta under profiles (or globally in Keys).  Change option key to meta shown below and you’ll be able to… Read More »

aptitude package manager – how to use tutorial

Debian / Ubuntu linux visual package manager, a step-up from apt / apt-get command line for installing your LAMP server. Navigating aptitude with hot keys ? – help screen with partial list of hot keys l – filter packages (lower case L), shows only packages / – search, places cursor (within context of all packages)… Read More »