Laur IVAN

Multiline Regex in Visual Studio Code

Posted by in IT

Setting up a multi-line regular expression in VS code is done by explicitly matching the CR/LF characters using \r?\n. For example, if I want to find all lines starting with a [, including subsequent blank lines, I can do:

HTH, A little experiment: If you find this post and ad below useful, please check the ad out :-)

Move SQL Developer Data from the Roaming Profile in Windows

Posted by in IT

TL;DR:: Set up IDE_USER_DIR. I have to keep my roaming profile on a diet and this means moving a bunch of default directories around. The latest victim is SQL Developer According to this post, the environment variable to be changed is IDE_USER_DIR. From the post: According to documentation, the IDE_USER_DIR is picked up automatically if set, so there should be no need for an additional conf file set statement in any recent SQL Developer release. If this doesn’t work, you may try editing config files around as described in the…read more

AppleIntelSKLGraphicsFramebuffer – Kernel panic with Intel530

Posted by in Hardware, IT

TL;DR: My solution was to just set the DVMT (Dynamic Video Memory Technology) to 64M. YMMV though… Yesterday I decided I want to start building a hackintosh to replace my old mac mini. My system has the following components: Asus Maximus Hero VIII Alpha 16 GB of RAM I6700k Some SSDs, HDDs and a NVMe I chose not to get a graphics card since the nice ones are both expensive (600+ for a GTX1080) and unsupported (there are reports of RX480 working-ish). So, for the time being I’m stuck with…read more

Set Different Gradle Configurations

Posted by in 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. Including a password (which has since became obsolete). Since my other environment doesn’t use a proxy, I got an error there. Now, the question became: How do I create a single project gradle settings file which would allow me to run smoothly in both places? Although I thought of a…read more

Migrate Chromium and Keep all Settings

Posted by in 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 chromium version you’ve installed Go to App Data\Local Archive the Chromium directory Note: this might be huge! To reduce it, clean the Chromium\User Data\Default\Cache Note the plugins (optional) – this might be useful if you have plugins depending on…read more

Install and Use Package Control Behind Proxy

Posted by in 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 authentification required). I managed to do it with two simple steps: Install Package Control manually. At the time of writing this post, the process is simple: Click the Preferences > Browse Packages… menu Browse up a folder and…read more

Thou Shall Stop Reading

Posted by in IT

I’ve caught myself reading about a subject matter (now, that’s android). I’ve been reading articles, documentation on new libraries, looking for inspiration on the net about UI… All for an app I’m upgrading with new functionality and looks. This is bad and I’ll stop doing it after I tell you why. First of all, it’s the time. My time is limited because this is done outside work hours. With the other stuff I’m doing (e.g. watch a game), the time I can dedicate to development drops even more. The new…read more

Replace a colour in an image with imagemagick

Posted by in 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 the RGBA in two, perform the operation and replace the RGB channels with the updated variants, or even do a pixel-by-pixel search (aka overkill). Since this is more or less a one-off operation, I’ve looked at other ways. I remember…read more

Gitlab Dreamhost SMTP

Posted by in 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 SMTP. My SMTP of choice is Dreamhost and, since it’s not listed I had to do some digging. Without further ado, here’s the docker command I used:

where: [GITLAB.WEB.NAME] is the host name…read more