Skip to content

Posts...

Page 42 of 54

Qt: Embedding Multiple Widgets in a Menu Item - 2004 style

October 8, 2014Category: Software
TL;DR : This post is about an experience I had in 2004 and it's part of my consolidating technical posts I wrote in time. It may or may not be relevant to today's technologies. One night in October 2004 ( WOW! it's almost 10 years!! ) I decided that it should be possible to group a bunch of widgets…

BAT Files: Execute Multiple Commands in a Loop

October 3, 2014Category: Software
One of the tasks the other day was to load a large DB organised by year. The most efficient way was to loop through a sequence of years and execute the loader for each one. The first iteration I ended with was: This means: For years from 1996 to 1998, with an increment of one, execute my load.bat…

Postgres: Show Schema Sizes in a Database

October 2, 2014Category: Software
While loading a large database from files to a Postgres schema, I found very useful to know how much space on disk it actually occupies (just in case I need to re-size the disk). I found this answer online: Which results in a list like: ] HTH, PS: All credit goes to this StackOverflow answer !

PyCharm: Change the location of .PyCharmXX

October 1, 2014Category: IT
In the good practice of IntelliJ application, PyCharm creates its own cache directory in your home. Mind you this can get really big (300Mb+) and if you sync your home with a networked drive, you'll get penalised (time-wise). Following this discovery (my login/logout time is up to 30mins because…

Android Studio: Change the Cache Location (AndroidStudioBeta)

September 30, 2014Category: IT
Android Studio (AS) creates a directory .AndroidStudioBeta (which will likely be .AndroidStudio once it's launched officially). This happens for each user and looks like a cache directory, where local bits are stored. Unfortunately, the size of mine (after only a couple of projects) is of about…

IntelliJ: Change the default cache location (e.g. .IntelliJIdeaXX)

September 30, 2014Category: Software
Everything started from a problem I had with PyCharm, where it would create a ".PyCharm30" directory in my home, which would end up being about 300Mb, with a lot of files (2000+files, approx 200 directories). This gets taxed since my home dire gets synced at login/logout with a networked drive…

Android java.lang.VerifyError and Boilerplate code

August 19, 2014Category: Software
TL;DR: Change the java version compatibility in your gradle file (see below) or remove Hugo references from your e.g. "debug" code in Velcro. The other day I discovered a bunch of template-based application generators for android. While they are very interesting and apply some of the best…

ELI5 - Injection Concepts

August 9, 2014Category: Software
TL;DR: Injection is the process to automatically initialise variables (or parameters) when building an instance. I'we tried to wrap my head around dagger for a few days until I realised I was missing actually the concept of injections in java (to my defense, I stopped using recent java releases…

ELI5 - Android and Java Libraries and Concepts

August 8, 2014Category: Software
These days I'm learning how to build an Android application. After building a step-by-step simple app (like a " Hello world! ", but with lists and fragments), I wanted to go further and build something more complex, using afree tamplate. There are a lot of boilerplate templates for an app, but…

Android - Speed up Building with Android Studio and Gradle

August 5, 2014Category: Software
I've noticed that building a small application with gradle is slow (in my case because I'm only starting with Android development and I compile stuff way too often). One of the things I found online was a way to speed up building by using the gradle daemon instead. From daemon's documentation…
PreviousNext

All tags