Merikan Blog

My personal braindump

Upgrade to Bash 5 in MacOS

I am a long time user of zsh but I also use bash now and then but mostly when running bash scripts. I admit that I have used the default bash installation in MacOS but now was the time to upgrade to the latest bash version. With Homebrew it’s super easy. Print current version $ bash -version GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18) Copyright (C) 2007 Free Software Foundation, Inc. Print location of current bash

Upgrade CrashPlan on Synology

My Crashplan installation stopped working a while ago now it’s time fix it. Update: A few days after I did this there was a new release available from pcloadletter at so I just installed it and it works perfectly. I recommend to use the packaged version instead of modifying as I did. On my laptop, Mac OS X, I have version 4.

Move a git repository to another location.

You might think that when moving a git repository from one location to another, all you have to do is to clone and then push to the new location. That is not true. You have to make sure that all remote branches and tags are included. Note that the following instructions will also push all your local branches to. The following steps will move a repository called my_repo from Google Code to Github.

Mavericks and slow Finder

Last weekend I upgraded my MBP to Mavericks. I have been waiting with the upgrade because I didn’t want to have problem with my computer so I figured I’ll wait for some bugfixes before upgrading. So last weekend I decided to take the jump and upgrade. The first thing I discovered was that HyperSwitch was not working as it should and I still have not found a solution to the problem.

Regex and negative lookbehind

In my current project our application is built with Spring and we are using a couple of Spring profiles. Unfortunately we didn’t make them unique so if we deploy it with another application in the same application server we might get a name clash. We decided that we better try to use names that are specific for our application. So I started renaming all of our spring profiles by just adding the prefix apigw.

Black screen when starting Ubuntu

Today I started up my Ubuntu laptop and the login screen was all black. I could see the cursor arrow but everything else was black. The laptop is dual boot with Windows and Ubuntu and I quite recently changed from Linux Mint to Ubuntu. A quick lookup with Uncle Google pointed me to this page, My computer boots to a black screen, what options do I have to fix it? If your system is dual boot.

“Eclipse” is damaged and can’t be opened

Yesterday I downloaded the latest Eclipse named Kepler to my Mac. I unzipped the package as usual and tried to launch it by clicking on the Eclipse file. I received the following error message: After a quick search on the internet I found the solution in a bug report at Eclipse Bugs . It is the OS X GateKeeper that thinks that the file is corrupt and should be moved to trash.

No sound in OS X when playing YouTube videos in Chrome

It have happened a couple of times that I suddenly don’t have any sound from my speakers when watching YouTube videos in Chrome. I don’t know how and when this happens but it is easy to fix. Just open a terminal and run “sudo killall coreaudiod”. I probably should investigate why this happens but I will do that on a rainy day. $ sudo killall coreaudiod That’s it.

Alldeles för tyst vid datorn

Hmm, vad tyst det är när jag sitter vid datorn. Hade glömt att installera Spotify på min Linux box. Ett par klick så är det installerat och tystnaden bruten. Ge mig Timbuktu…. Spotify har tyvärr ingen skarp version av sin programvara utan den för Linux är en preview, som varit preview ganska länge men fungerar alldeles utmärkt 😉 Ett annat alternativ är att köra Spotify i Wine men det är inget jag känner för då de tuffa killarna kör native.

Uppgradera Linux Mint

Skriver detta inlägg som dokumentation till mig själv. För ett tag sedan uppgraderade jag Linux Mint från release 12 till 13. Folket på Linux Mint vill att man skall göra en “fresh uppgrade” vilket innebär att man tar backup på allt sitt data och alla program för att sedan installera över den gamla releasen. Efter att installationen är klar sås skall man läsa tillbaka data och program från backupen. Jag är van att göra en paket-uppgradering istället vilket innebär att man tar en backup (?