Skip to content

Content classified under "Tutorial"

Page 10 of 12

Inject Proxy Settings in Selenium/Chrome

October 24, 2016Categories: Software, Tutorial
I have the following situation: I'm behind a corporate proxy and I need to run a test accessing an external website. To do this, I've picked up chrome/chromium as driver of choice. My current solution implies an authentication via plugin. The plugin The chrome plugin is essentially 2 files: a…

BIOS Loads from 0x7c00

September 21, 2016Categories: Software, Tutorial
Today I was investigating a bug where a simple program wasn't executing properly. It emerged that BIOS loads the code from the MBR at 0x7c00 . Relevant info reproduced here: The (legacy) BIOS checks bootable devices for a boot signature, a so called magic number. The boot signature is in a boot…

Set Different Gradle Configurations

September 19, 2016Categories: IT, Tutorial
TL;DR : create a global gradle.properties file (in <HOME>/.gradle or GRADLE_USER_HOME if defined). Place there the system specific configuration. The other day I had the unpleasant surprise that Android Studio replicated my proxy settings into gradle.properties and got committed to Git…

Migrate Chromium and Keep all Settings

August 23, 2016Categories: IT, Tutorial
TL;DR : Backup App Data\Local\Chromium on your old machine, copy it to your new one and uncompress (in the same place), install Chromium, profit. With the migration to a new computer, I've managed to keep all my Chromium settings. The steps I did are the following: On the old computer Note the…

Install and Use Package Control Behind Proxy

August 22, 2016Categories: IT, Tutorial
TL;DR : Install Package Control manually. Add the proxy settings to the configuration file as described in step 2 below. Today I've had to install Sublime Text 3 again on a new computer. Package control didn't want to install due to my proxy settings (I was getting a 407 error code - Proxy…

Mock an Observable Interface

August 1, 2016Categories: Software, Tutorial
TL;DR: Use a doAnswer() with a new Answer<Observable<Type>>() if you have to mock observables. Today I wrote my first test where I had to mock an observable interface: where the User model is: Solution In my test class (named UserDatabaseTest ), I first mocked the interface: Then, my setup…

Replace a colour in an image with imagemagick

June 8, 2016Categories: IT, Tutorial
I had to change the colour of some monochrome icons for a personal project, from black to something else (i.e. not black). I've tried in python with PIL. Unfortunately, my attempts to use ImageOps failed miserably, because I'm working with RGBA images, not RGB :(. Of course, one could separate…

Strip HTML tags in python

June 5, 2016Categories: Software, Tutorial
Note: This is a post transferred from Laurii for historical and consolidation purposes. A common problem I have to deal with quite often is to remove all HTML tags from a document. While this is easy for XML (well formatted etc.) and you could do it by hand with a regexp, HTML has a bit more…

Gitlab Dreamhost SMTP

June 1, 2016Categories: IT, Tutorial
The other day I've tried to install GitLab on Docker because I've got a Synology NAS which does support Docker :) I've found that if I create an user, it sends a confirmation email (of course it does!) and, unlike with Django, I'm not that versed in RoR to reconfigure to use logs instead of real…

Outlook VBA: Iterate recursively over folders

May 31, 2016Categories: Software, Tutorial
Note: This is a post transferred from Laurii for historical and consolidation purposes. As part of the program I've started , I had to perform a recursive walking of all sub-folders from a starting point in a .pst file. Code looks like this: This doesn't do too much... It selects a folder…
PreviousNext

All categories