Archiv der Kategorie: Computing | Tech

How to solve freezing Android Device Monitor on Mac OS

Obviously Android Device Monitor freezes right after launch when running with Java versions > 1.8.0_151.

To keep the most recent Java version installed on your machine, but run the Android Device Monitor with an older version, just change the start parameters for the monitor app package as follows:

  1. Go to <android-sdk-homedir>/tools/lib/monitor-x86_64/
  2. Right click on monitor.app –>  „Show Package Contents“
  3. edit Info.plist in a text editor
  4. Uncomment one of the <string>-vm</string> prepared templates and let it point to an older JDK installation on your machine, e.g.:
     <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin</string>
  5. Save the file and start Android Device Monitor, should work now

 

(thanks also to https://stackoverflow.com/a/49389289)

1 liner to install Oracle Java 8 on Ubuntu

The one liner below does everything required to install Oracle Java 8 on Ubuntu (adding repository, download + install, setting defaults):

sudo apt install software-properties-common -y && sudo add-apt-repository ppa:webupd8team/java -y && sudo apt update && sudo apt install oracle-java8-installer curl wget jq -y && sudo apt install oracle-java8-set-default -y

OneNote for Mac permanently crashing on startup

After activating my new MacBookPro by restoring data and apps from a time machine backup of my old machine, Microsoft OneNote did not work anymore. It kept crashing on startup permanently for no obvious reason. I found this helpful article that solved my issue:

http://www.iphonetopics.com/how-to-fix-onenote-mac-crashes-on-startup/

(mainly:

1. Delete the following folders on your Mac:

~/Library/Containers/com.microsoft.onenote.mac

~/Library/Group/Containers/UBF8T346G9.Office

2. On your Mac OS X, open “Keychain Access” app and search for “MicrosoftOffice”. If OneNote app recognized that you signed in, you’ll have entry with long name. Delete it.

3. Restart and  try to launch OneNote app and signing in again.)

 

Where is my.cnf located on Mac OS Sierra?

I had the urgent need to configure some specific stuff in MySQL 5.7 on my developer machine, a MacBook Pro running Mac OS Sierra. Unfortunately, I did not find a my.cnf file that could be customized anywhere?

Internet research showed that MySQL Database Server on Mac OS runs without a my.cnf config file by default, simply started with default values.

Luckily, it is pretty simple to customize the MySQL Server installation by creating and editing a custom my.cnf file like this:

sudo cp /usr/local/mysql/support-files/my-default.cnf  /etc/my.cnf

Then edit / customize the /etc/my.cnf file as required and restart your MySQL Server.

 

 

Wird Microsoft wieder „cool“?

Nach langjähriger Microsoft-Abstinenz kann ich dem Unternehmen in letzter Zeit wieder immer öfters ein „Thumbs up“ abgewinnen – ganz im Gegensatz zu Google und Apple, die sich in letzter Zeit meiner Meinung nach in eher fragwürdige Richtungen entwickelt haben … Der Rückzug von Steve Ballmer dürfte Microsoft definitiv gut tun und vielleicht ist das der Beginn einer Ära, wo Microsoft „cool“ wird 🙂

derstandard.at: Microsoft-Entwickler müssen nicht mehr mit Windows arbeiten 

Apache Cordova Tutorial

As I am convinced that hybrid App development techniques like Apache Cordova / PhoneGap are here to stay and they really provide a lot of advantages over native implementations, I’m trying to regularly reserve parts of my time to get deeper into these  technologies.

One of the best tutorials as a starting point for getting in touch with Apache Cordova is the one of Christophe Coenraets which can be found here: http://ccoenraets.github.io/cordova-tutorial/ (last accessed November 2015).

Strongly recommend it to everyone interested!