Laur's blog
  • Home
  • About
  • Support my work
Sign in Subscribe
Manually Create a Retrofit/OkHttp Response for Testing
android

Manually Create a Retrofit/OkHttp Response for Testing

I've got a method in an use case which requires a Retofit Response object as parameter and I need to test it. Now, I can use the Retrofit itself and build one with the network, but it would require the full android shebang. I've opted instead
Sep 21, 2015 1 min read
MVP in Android - A Summary
android

MVP in Android - A Summary

These days I'm reading on architectures. I had a look at MVC, MVP, MVVM and how they are applied (adapted to?) to Android applications. Here are some short points about MVP. Model-View-Presenter has been adapted to Android and is advocated by more experienced people than I. It is
Sep 14, 2015 2 min read
Architectures in Android Applications - Quick Notes
android

Architectures in Android Applications - Quick Notes

I'm looking at architectures MVP, MVVM, MVC ... applied to Android applications and I find the current state of things a bit of a mess. Everybody has their own preferred architecture, finds another one and claims it's better and refers to Uncle Bob. It's funny
Sep 14, 2015 1 min read
Real Sticky Footer with Material Angular
3

Real Sticky Footer with Material Angular

I needed to set up a sticky footer as part of my Angular and Material Design experiment. You would not believe how many resource I could find (some of them listed below)! Unfortunately, most of them had a problem; blank page looked fine (header and footer in the right places)
Aug 28, 2015 1 min read
Multiple Navigation Bars in Header with Flexbox
bootstrap

Multiple Navigation Bars in Header with Flexbox

I've got a requirement to build a site header with three components: 1. Brand (company logo...) - left 2. Menu - center 3. Shortcuts (settings, search) - right The result should be looking like this: Now, with Bootstrap is really easy to get the brand (and the menu)
Aug 26, 2015 3 min read
Tweak Paths with Gulp-Connect
connect

Tweak Paths with Gulp-Connect

I've recently started to work on a front-end project using nodejs, gulp, bower and angular. Its back-end is a java application and it's configured like this: * Serve all the UI (frontend) from a /static path http://mysite.com/static/... * Serve all the API-related URLs with a
Aug 22, 2015 1 min read
A Mini-List of Useful (Gulp) Plug-ins
beginner

A Mini-List of Useful (Gulp) Plug-ins

I'm currently starting with nodejs, gulp and bower as part of a front-end project I'm working on. Here are some plugins for gulp I found and which help me with a cleaner, more featured build system. gulp-connect Gulp-connect is capable of starting a small web server
Aug 20, 2015 1 min read
Plot Points Based on Distances Between Them
d3.js

Plot Points Based on Distances Between Them

My problem this days is: I need to provide a drawing of trees on my plot of land in order to see which can be spared when building the house. The easiest way to do this is to measure the distance between the said trees, add some basic coordinates (to
Aug 13, 2015 3 min read
Buy a Bicycle for the Baby
baby

Buy a Bicycle for the Baby

Long gone are the days when you only had to go to your local shop (ok, 2-3 local shops) to browse and buy the best bicycle you could find. Now you have many online shops (yes, even Amazon has some options here), review sites and price comparison engines (no link
Jul 28, 2015 2 min read
An Ex-Ante Checklist
ante

An Ex-Ante Checklist

A while ago I had to deal with an ex-ante evaluation. One of the byproducts was a checklist. Here it is: Assessing the needs * What is the current state of play? * What do people think of it? * How can it be improved? Defining objectives * Are the objectives described in a
Jul 25, 2015 1 min read
Add XML to PostgreSQL from Python
load

Add XML to PostgreSQL from Python

One of the projects I worked on was to import a large number of XML files in a PostgreSQL database (as XML files). I chose python to do it. Here are the steps: Database The data source is the SCOPUS database which has a silly number of entries (approx 20,
Jul 24, 2015 4 min read
ProgressDialog in AsyncTask: Dynamic Update Text/Title
android

ProgressDialog in AsyncTask: Dynamic Update Text/Title

Sometimes, you may want to update the text shown in the progress dialog. If you try to perform this in doInBackground() you'll get an exception along the lines: Only the original thread that created a view hierarchy can touch its views The solution is to not do it
Jul 17, 2015 1 min read
ProgressDialog in AsyncTask: Dynamic Update max()
android

ProgressDialog in AsyncTask: Dynamic Update max()

Sometimes you determine the max of the progress bar in the background task. Unfortunately, there's almost no way to transmit that to an UI thread-executed method like onProgressUpdate() (well, you could, but that'd be abusing the method). Instead you can do something like: public class MyTask
Jul 16, 2015 1 min read
ProgressDialog and AsyncTask: Table of Contents
android

ProgressDialog and AsyncTask: Table of Contents

Here are some things I've learned on using a ProgressDialog in an AsyncTask. 1. Dynamic Update Text/Title 2. Dynamic Update max()
Jul 15, 2015
Butterknife: ClassCastException: Symbol$VarSymbol ...
android

Butterknife: ClassCastException: Symbol$VarSymbol ...

The other day I decided to update my Butterknife from 6.x.x to 7.x.x. Immediately I noticed some refactoring (e.g. @InjectView became @Bind). I updated my code and got build (from Android Studio's "make"). Unfortunately, when I tried to test it, I
Jul 10, 2015 1 min read
Ergodox - List of components
accessort

Ergodox - List of components

The list of components increased the price of the Dox quite a lot. The upside is that I still have a lot of solder wire, the multi-meter, the soldering gun and some switched left. Ergodox parts * Ergodox - I got this off Massdrop without switches. I'm not sure
Jun 23, 2015 2 min read
keyboard

Keycap profiles

I keep finding myself scouring the internet looking for keyboard profiles. So, for my reference, here's one of the best images I've found so far: HTH,
Jun 23, 2015
Ergodox - Day seven - Granite keycaps
blue

Ergodox - Day seven - Granite keycaps

It's finished! With Granite caps and modifiers and some blanks too (no multimedia keys for granite :(). My layout is this one. The keyboard (which I am particularly proud of) is: It is working (yes, I'm still amazed!) and I found it very easy to put in
Jun 23, 2015 1 min read
Move Gradle Home
change

Move Gradle Home

I'm having some space constraints and I need to move as much as possible to a non-backed-up place. Gradle home (the .gradle directory) has 2.23GB on my computer. A lot, so it must go. The procedure is simple. Just create an environment variable named GRADLE_USER_HOME:
Jun 20, 2015 1 min read
Ergodox - Day six - Switches are in
blue

Ergodox - Day six - Switches are in

Well, it's almost finished! I've decided to use mostly blues, with greens on things like space bar, enter (on the default layout anyway). The right hand is: The full keyboard looks like this: Apologies for the mess and the plate, but it was early in the
Jun 19, 2015 1 min read
Ergodox - Day five - Finished components soldering
electronics

Ergodox - Day five - Finished components soldering

Last light and early this morning (I've finished at 01:30 AM) I've completed the soldering of electronic components (diodes, Teensy, condenser...) It looks fine and it was easier than I thought it would be (barring in mind it took me more than 2 hours to
Jun 18, 2015 2 min read
Gradle(w) and Proxy Authentication
android

Gradle(w) and Proxy Authentication

The recent updates in Android Studio eliminate the possibility of passing JVM arguments to gradle. That's quite unfortunate because I quite liked my solution and now I was getting a (not) nice Connection refused message... So I had to find a different solution. Environment Variable As always, everything
Jun 18, 2015 1 min read
Ergodox – Day four - SMD diodes done
diodes

Ergodox – Day four - SMD diodes done

A bit late with posting the progress, but early on 17/06 I've finished soldering the diodes on both boards. 80-ish of them! and they all seem to work (tested them myself!). Here's a colour variant of the photo too: Next step is to solder all
Jun 18, 2015 1 min read
Ergodox - Day three - Left side finished
diodes

Ergodox - Day three - Left side finished

Left hand side diodes finished now: I'll be starting the right side diodes next :) Then, I'll continue and finish the right side :) I have to say it's a bit frustrating slow soldering at times, checking that everything works, but it's epic fun!
Jun 7, 2015 1 min read
Ergodox - Day two - More diodes
diodes

Ergodox - Day two - More diodes

More diodes landed on the left hand side board: Not too many, but I'm new at hot air soldering :)
Jun 7, 2015
← Newer Posts Page 18 of 26 Older Posts →
Laur's blog © 2026
  • Sign up
Powered by Ghost