Skip to content

Posts...

Page 31 of 42

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…

Python Tutorial - Guess a Number Game

August 1, 2014Category: Software
A while ago I had a problem to solve: Write a program to guess a number between 1 and 1,000,000 in python. This is a simple learning program, done in high school or university, particularly when learning a programming language. The Problem The problem can be translated in the following parts…

Gradle and Proxy Authentication in Android Studio

July 28, 2014Category: Software
Update : This is obsolete as Android Studio is going to eliminate JVM arguments for gradle. See this post for a more future-proof approach . The other day I did an exercise to install Android Studio ("AS" henceforth) (0.8.4 at the moment of writing) and create a project with gradle in an…

EPSO - Various Information and Tips

July 28, 2014Category: EPSO
Soon, I'll start writing various articles related to EPSO, with information and tips and tricks I've learned in the last years. TL;DR: Have a look at my EPSO-related site for some tips and other information on competitions. Who Here is some info about me on this matter: Laur is a dedicated…

Load a CSV File with Header in Postgres via Psycopg

July 5, 2014Category: Software
My task is to create a script to load a bunch of files into a DB model. The files are CSV, with quoted strings and headers. Postgres has a COPY command which I find fabulous for loading data. unfortunately, the psycopg implementations copy_from() , copy_to() and copy_expert() have very few examples…

Braindump: Use a Decorator to Time your Python Function

July 4, 2014Category: Software
In the programs I write these days I use timing methods to profile the code, mainly because I find it easier to split and sum deltas based on functions. For example, I have a script that loads an XML file, parses it into a relational-ish layout, and uploads the layout into a database. Therefore, I…

Braindump: Save State on Activity Rotation Lifecycle - Android

July 1, 2014Category: Software
Now I'm trying to write a (more complex) Hello World application for Android following a bunch of internet resources . I've read that an Activity has a life cycle (create/start/stop/resume/pause/destroy). This makes sense, because most UI elements (also in other frameworks) can be viewed as…

Smart-Monitor your Site via e.g. Pingdom

June 20, 2014Category: IT
I use pingdom to check if one of my sites is up and running, getting an email if the root index.html page doesn't behave. I just read the single most interesting piece to use pingdom to check your whole site: I recommend creating an internal status page which automatically checks all the…
PreviousNext

All tags