Skip to content

Posts...

Page 25 of 49

Clean Factory Reset for LG G2 (802)

February 22, 2016Categories: Hardware, IT
TL;DR: If you can't enter recovery (but you can enter download mode) and you've installed Lollipop stock back from CM13, you need to erase everything ( CSE Flash on your LG Flash Tool ). The other day I've updated CM13 to a new nightly and it got stuck on boot loop. After searching on the…

GoogleApiClient .connect() Interface or Class

February 14, 2016Category: Software
TL;DR : If it's your code, check the version play services ( com.google.android.gms:play-services-\* ). If you're using a library, check if the library has a version using play services >= 8.1.0 . If not, you'll need to clone and upgrade it yourself. The other day I got an interesting error coming…

Fix Gradle Error: UNEXPECTED TOP-LEVEL EXCEPTION

February 10, 2016Category: Software
Today I got the lovely UNEXPECTED TOP-LEVEL EXCEPTION from the dexer in android. Looking on the net yielded several causes and resolutions. Note : I'm using Gradle 2.10, Android Studio 2.0.0-beta2 Caching Apparently, sometimes Gradle is shooting itself in the foot with the caching. The first thing…

Migrate PostgreSQL Between Two Machines

February 5, 2016Categories: IT, Tutorial
TL;DR : Once you prepare the connection, pg_dump is your friend. Recently, we had to migrate a large-ish DB (1.5 TB) from a Windows installation to a Linux one in order to accommodate a series of third party extensions. We have split the process in three: Prepare the migration Migrate users Migrate…

Hide Apps in Nova Launcher Drawer

January 28, 2016Categories: IT, Tutorial
TL;DR : Select Nova Settings -> App and widget drawers -> Hide apps (scroll down bit) -> select the apps you want to hide. I've noticed that my app drawer started to get cluttered with stuff I'm not really using (like the Audio FX stuff). since some of the things I can't remove (system apps…

Add Wear Notifications to Android App

January 24, 2016Category: Software
TL;DR : Use android.support.v4.app notification mechanism. Steps are: Create a WearableExtender: Extend the notification mechanism: Trigger the notification: After reading various sources , I got my application to send notification to my watch using the code above. At the beginning, I thought the…

LibGDX drawPixel has Wrong Colours

January 17, 2016Category: Software
TL;DR: Note that Pixmap.drawPixel(x, y, colour) expects a RGBA8888 colour, even if the pixmap is not RGBA8888 . Today I wanted to create a background with a bunch of different pixels and I had a lot of problems, displaying different colours from what I had in my array. The process is simple…

Create a Background with Vertical Lines of Different Colours

January 17, 2016Category: Software
I've got a list of colours (RGB) in an array and I want to build a background with vertical lines, each representing a colour from my list. The process is too simple to put in a TL;DR :) If my list of colours is, Array<Vector3> cols, then the process is as follows: Create a pixmap: Set one pixel…

Stream from a String Instead of CIN in C++

January 11, 2016Category: Software
TL;DR : You can stream from a string instead of STDIN . Code is simple and is listed below. A project I did recently had a requirement to overload the >> operator use and STDIN to load data. The problem was not the overload itself, but the fact that testing would introduce a manual side. To get…

Load Glyphs with LibGDX

January 3, 2016Category: Software
TL;DR : Remember to give the font loader the list of characters to render from the font! I'm trying to get a more resolution-independent mechanism to load simple shapes in place. After investigating SVG loading for several days I got nowhere. Then, I found out that libGDX actually supports vector…
PreviousNext

All tags