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 »

MacBook Fix Fast Battery Drain

To debug and fix a MacBook fast draining battery try the following solutions / fixes. First find out how fast your MacBook is draining its battery by using System Information (Apple logo top left corner, About This Mac, More Info, System Report, Power). Look at the Amperage (mA) value.  Unplug your MacBook if you’re running… Read More »

Securely Delete Linux Server

Shutting down and deleting a Linux server securely – overwrite disk data using: dd if=/dev/zero of=/dev/sdXXX bs=1048576 where sdXXX is found by using df which returns something like Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda 98438788 29142068 64296324 32% / varrun 524288 44 524244 1% /var/run varlock 524288 4 524284 1% /var/lock udev 524288… 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 »

Bluetooth Speaker Sound Delay Fix Macbook Pro

Suffering 1-2 second sound delay between video on Macbook Pro and bluetooth speaker (Jabra Solemate in my case) I searched for a solution.  Updating the bluetooth speaker firmware (from version 1.33 to 1.34 on the Jabra Solemate) solved/fixed the sound video sync delay problem for me between a Macbook Pro Retina (2012) and a Jabra… Read More »

Sony A7r vs. Leica M9 Dynamic Range Compared

The Sony A7r camera body vs. Leica M9 camera body sensor dynamic range comparison in these two photos illustrates the advantage Sony has in its latest 24MP CMOS full-frame camera sensor (same as used in the Nikon D600/610). Sony A7r with Leica 75mm f/2 lens Leica M9 with Leica 75mm f/2 lens (Use left &… Read More »

Splunk – account currently not available – boot-start

./splunk enable boot-start -user splunk returns error: This account is currently not available. First-time-run has not finished.  Ignore this error when previewing migration – exiting. Cause for error is the specified user has no shell. Fix – set the shell for the splunk user (“splunk” in this case), to /bin/bash. Run in the terminal: usermod… 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