Skip to content

Content classified under "Software"

Page 13 of 21

Android - More Speed up Building with Gradle

May 20, 2015Category: Software
In my previous post I described one thing you can easily do to improve the build speed, namely enabling the gradle daemon . In the meantime, things improved quite a bit: Gradle 2.4 (at the moment of writing) has better speed You can run things in parallel now like other build tools (e.g. make…

Fix CodeIris plugin in Android Studio

April 16, 2015Category: Software
TL;DR : For the combination of AS 1.2beta and CodeIris 1.13 beta, go to your .AndroidStudioPreview12/config/plugins/CodeIris-Idea/lib and remove your groovy-all jar file. I wanted to get an UML representation of my classes and one plugin I found was CodeIris . Unfortunately, when I tired to…

Synology and "Sparsebundle is Already in Use" Error

April 9, 2015Categories: Hardware, Software
Today one of my Sinology drives failed. When I've replaced it, I got an error from my Mac's Time Machine about a " sparsebundle is already in use ". I saw a discussion saying the solution was to close/reopen TM connection. With Synology, I only needed to disable and enable the service off the…

Rot Algorithm in Python

April 3, 2015Category: Software
A while ago I wanted to send a bunch of emails to building companies in order to get some quotes and/or information. Unfortunately, the website in question (pagesdor.be) doesn't provide emails in clear text to allow me copy/paste. Instead it uses a Rotating cypher algorithm (I guess it must be…

Better Toast in Android

April 2, 2015Category: Software
In my previous post , I've presented a Toast solution via a Handler and a Runnable . While that solution was a nice one and serves pretty well, I still got an exception. Therefore, I've decided to implement a builder-type wrapper to cover all situations: Direct : just display a Toast…

Add Primary Key Column to PostgreSQL Table

March 23, 2015Category: Software
The other day I got a question: How to add a numeric PK column to an already existent table? A quick look on the net showed that it is indeed possible to add an auto-incrementing PK to an already existing table ( if you don't have already a PK that is! ). The code is quite simple too! The statement…

Attempted to Finish an Input Event ...

March 16, 2015Category: Software
... but input event receiver has already been disposed. This is the error I got while trying to do something off a menu in Android. Silly really. The message is not too revealing so I ended up scouring the net for an answer and scratching my head afterwards... With a service My problem was trying to…

Android: Provide Local Asset in Testing

March 13, 2015Category: Software
In the past few days I had a little bit of a problem: InstrumentationTestCase gives access to local assets while AndroidTestCase gives access to getAssets() for assets specific to testing. I had a scenario to test where I get a file from my local src/androidTest/assets directory while the code…

NullPointerException - getInstrumentation().getContext()

March 11, 2015Category: Software
Here's a beginner mistake... The following code: Throws an exception: Attempt to invoke virtual method 'android.content.Context android.app.Instrumentation.getContext()' on a null object reference It took me some time to find out why: getInstrumentation() returns null in the constructor :) The…
PreviousNext

All categories