Devlog

Laravel change paths

Change storage path To change the storage path in Laravel (tested with version 5.2 and 5.3) you have to extend the Application class and then override the storagePath() method. You can do this all in the bootstrap/app.php file: class MyApplication extends \Illuminate\Foundation\Application {   public function storagePath() {     return $this->basePath . ‘/../storage’;   } […]

React, Babel and NPM

These are the steps to take when developing a React application with automatic JSX (and es2015 to es5) transformation with Babel. I don’t use a bundel in this example, so you cannot use things like “import” and you have to add script tags to your HTML page to import Javascript files. Initialize your NPM project – […]

Add or delete multiple files in SVN

The following command will add all unknown files except for ignored ones: svn add –force . Or: svn add $( svn status | sed -e ‘/^?/!d’ -e ‘s/^?//’ ) To delete all files with ! in front: svn delete $( svn status | sed -e ‘/^!/!d’ -e ‘s/^!//’ )

Localization in app store iOS

Some remarks about localization an app in iTunes: The country associated with the Apple ID has to be one of the countries the app is published in to be able to find and install the app. So this has nothing to to with Settings / General / International / Region Format! You can change your […]

Clean PDF fixes crash on iOS

I recently tried to open a PDF but everytime I did, the Dropbox and Google Drive apps on iOS crashed. I fixed this by “cleaning” the PDF with MuPDF – I don’t know what it does, except that after this action, the crashes where gone. If you download the MuPDF package, you can also find […]

Make screenshot from Android emulator

adb shell screencap -p | perl -pe ‘s/\x0D\x0A/\x0A/g’ > screen.png

Multiple Xcodes and iOS simulators

When upgrading Xcode, it wil overwrite the old one including the iOS simulators. To install an old version of Xcode: Download the .dmg from the Apple devcenter. Open this package so you see the Xcode.app. Create a directory for this Xcode version, e.g. /Applications/Xcode6.4 or some other name. Put the Xcode.app into this new directory. […]

Sami – a PHP API documentation generator

I recently was looking for a way to create clear and nice looking API documentation from a library I made (BSF GitHub and API docs). I looked into phpDocumentor 2, apigen, doxygen and Sami and decided to go for this last one. It has a real nice looking default theme and is themeable with twig. But […]

VIM tips

Here I will collect some of the actions I always have to look up before I can use them in VIM… Replace in selection Get into visual mode (CTRL + V) and create the selection Type : – you’ll see ‘<,’> which is the range After this range, type for example s/fuction/function/g to replace every occurance of “fuction” […]

Github gh-pages and master

I often create a gh-pages branch for my Github projects as a simple website for the master branch. These are the commands to keep gh-pages up to date with the master branch and push everything to the remote: # In master: git add . git commit -m “A commit” git push origin master git checkout […]