Skip to content

Posts...

Page 30 of 42

Android: Display a Notification

October 13, 2014Category: Software
One of the applications I'm thinking about I want it designed like the notification-based applications you see out there (Light Flow from reactle comes to mind). To be able to do this, I first need the app to display a notification on the device as a first step. The code to trigger a notification…

C Optimisation - 2005 style

October 10, 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. I was trying to optimize a bit of code and found out that 2 if() statements are quicker than a case with true/false. and an…

D-BUS: DBUS and Mad scientists... - 2004 Style

October 9, 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. For the last while I was poking around with the glorious D-BUS ... As it's always the case with new cutting edge…

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…
PreviousNext

All tags