Archive of posts with the category 'How to'


Testing Django applications with Bitbucket Pipelines and MySQL

If you’re a Bitbucket user then you probably already know about Bitbucket Pipelines. If you’ve not heard of Bitbucket Pipelines then they are Bitbucket’s continuous delivery mechanism. They allow you to run commands, on a new commit for example, to run tests and then deploy your code to production (if you want). I’ve been using Jenkins for a while but wanted to try out Pipelines on one of my Django projects. Specifically I wanted to... Read on

How to: Solve the “Unable to convert classes into dex format” Unity error – the return….

Back in 2014 I blogged about how to solve the “Unable to convert classes into dex format” Unity error. I thought I’d post a follow up as I had the same error recently but with a slightly different message and cause. The error was: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/analytics/ExceptionReporter; I looked for ExceptionReporter and found it in: Assets/Plugins/Android/google-play-services_lib/libs/google-play-services.jar Temp/StagingArea/android-libraries/google-play-services_lib/libs/google-play-services.jar Temp/StagingArea/android-libraries/play-services-analytics-7.5.0/bin/classes.jar The original error report also said: Created unique file for imported asset as file... Read on

How to: Solve the “Unable to convert classes into dex format” Unity error

I recently came across the following error when trying to build my game in Unity “Unable to convert classes into dex format. See the Console for details.” The console error is pretty long but starts with: Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details. C:\Program Files\Java\jdk1.6.0_38\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="E:/adt-bundle-windows-x86-20131030/sdk\tools" -Dfile.encoding=UTF8 -jar "E:/unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" - stderr[ UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/internal/safeparcel/a; at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) at com.android.dx.dex.file.DexFile.add(DexFile.java:161) at com.android.dx.command.dexer.Main.processClass(Main.java:685) at... Read on

How to: Create a static copy of a Gallery 2 site

For many years I maintained an instance of Gallery 2 (http://galleryproject.org/) to share some of our photos with family and friends. However, life and technology moves on and I simply don’t have time to maintain the installation of the Gallery software* and couldn’t justify the time to upgrade it to version 3. Similarly, we don’t tend to use it for our photos any more and instead share things via Flickr, Facebook or just plain email.... Read on