Skip to content

Posts...

Page 38 of 49

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…

Fix Crazy/Jumping Cursor on a MacBook (Pro)

June 17, 2014Category: IT
A couple of days ago, my baby managed to take a jab at my laptop (several actually), and hit the both keyboard and the trackpad. I don't know how, but this managed to get the cursor to jump all over the screen, some clicks triggered, some virtual screens swapped... Wonderful! TL;DR : Plug in a…

Change a Domain Renewal Order on Blacknight Solutions

June 11, 2014Category: IT
Recently I've received a renewal order for domain hosting on Blacknight . Last time, the domain was renewed last year and I wanted to renew it for a longer period (3 years). After a brief chat with the billing customer support, I've came up with a list of simple steps, which I'll be enumerating…

Renew a Payment on Blacknight Manually

June 11, 2014Category: IT
As part of making a multi-annual order for a domain (instead of single-year), I needed to create manually a domain renewal order. Here are the steps I used. First, log in onto your control panel (if you're not already logged in). Then, form the list of owned domains, select the domain you want to…
PreviousNext

All tags