About Me

My photo
Drum & Bass Producer, Software Developer, Love my Cats

Bump Version in Xcode with a datetime-stamp

In order to create an automatic custom build number that bumps on its own every time you archive a build, add a new build phase of type "run script" and put the following code in the box (remember to check "run only when installing" so it doesn't run every time you build but only when you archive)

#
# Set the build number to the current timestamp in a "2016-09-19-11:53:09" format
# @author nur
#

appBuild=$(date +"%Y-%m-%d-%H:%M:%S")

/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $appBuild" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"

/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $appBuild" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}.dSYM/Contents/Info.plist"

hoep this helps you bump internal build numbers for your team using xcode automatically!

How to Install pip on mac os x?

To install the python package manager - pip - just run this command in terminal:

sudo easy_install pip

hope it helps you installing pip on mac!

how to convert a stereo mov file to a mono mov file

so you recorded a whole bunch of video only to find out that you hear the microphone only on one side?

no problem

just open terminal and run this command:

ffmpeg -i inFile.mov -map 0:0 -vcodec copy -c:a pcm_s24le -map 0:1 -filter:a:0 "pan=mono|c0=c0" outFile-mono.mov


of course change inFile and outFile-mono to the filenames of your choice

hope this helps you convert stereo 1-side only into a mono track which fixes the problem easily

Korg Monotron Presets Booklet

Do you have a Korg Monotron, Duo or Delay?
Korg say that they don't like presets for these little synths, to make you explore more rather than take a ready-made preset.
With that said, if you wanna start from somewhere familiar and then tweak it - you want presets.

So I created a small preset bank that you can program easily

Here they are (in my hand writing):

Korg Monotron Delay - presets

Korg Monotron Duo - presets

Korg Monotron - presets


I hope you find these Korg Monotron Presets useful !!!

How to fix : Gradle error: could not execute build using gradle distribution

if you're trying to build your project in eclipse or android studio and get this error:

Gradle error: could not execute build using gradle distribution

Or something similar, then you should:
1. Close your IDE.
2. Open a terminal.
3. Run this: mv ~/.gradle/ ~/old.gradle(which is basically renaming the hidden folder .gradle in your home directory to old.gradle folder - to keep a backup)4. Build your project in your IDE.5. Now a new .gradle hidden folder will be created and you're ready to go!\


hope this little tip helps you with solving the issue of getting
Gradle error: could not execute build using gradle distribution